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;
}
$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,