LSreletation: fix object type selection

This commit is contained in:
Benjamin Renard 2020-05-19 18:36:16 +02:00
parent c4db08d265
commit e53331c0ec

View file

@ -784,9 +784,7 @@ class LSrelation extends LSlog_staticLoggerClass {
return; return;
} }
$LSobjectInRelation = $object->getConfig("LSrelation.".$conf['relationName'].".LSobject"); // Load LSselect
// Load LSobject
if(!LSsession :: loadLSclass('LSselect', null, true)) { if(!LSsession :: loadLSclass('LSselect', null, true)) {
return; return;
} }
@ -811,8 +809,8 @@ class LSrelation extends LSlog_staticLoggerClass {
LSselect :: init( LSselect :: init(
$_REQUEST['id'], $_REQUEST['id'],
array ( array (
$conf['objectType'] => array( $relation -> LSobject => array(
'object_type' => $conf['objectType'] 'object_type' => $relation -> LSobject,
) )
), ),
true, true,