From e53331c0ec8308ac18550bc181016160c7a4c311 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 19 May 2020 18:36:16 +0200 Subject: [PATCH] LSreletation: fix object type selection --- src/includes/class/class.LSrelation.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/includes/class/class.LSrelation.php b/src/includes/class/class.LSrelation.php index 7628fc50..18622bd8 100644 --- a/src/includes/class/class.LSrelation.php +++ b/src/includes/class/class.LSrelation.php @@ -784,9 +784,7 @@ class LSrelation extends LSlog_staticLoggerClass { return; } - $LSobjectInRelation = $object->getConfig("LSrelation.".$conf['relationName'].".LSobject"); - - // Load LSobject + // Load LSselect if(!LSsession :: loadLSclass('LSselect', null, true)) { return; } @@ -811,8 +809,8 @@ class LSrelation extends LSlog_staticLoggerClass { LSselect :: init( $_REQUEST['id'], array ( - $conf['objectType'] => array( - 'object_type' => $conf['objectType'] + $relation -> LSobject => array( + 'object_type' => $relation -> LSobject, ) ), true,