Fix: Constraints must be stored in the field "enabled" ix llx_menu.
llx_constraint is deprecated
This commit is contained in:
parent
62971614d0
commit
6953b2b36a
@ -879,17 +879,6 @@ class DolibarrModules
|
||||
$result=$menu->create($user);
|
||||
if ($result > 0)
|
||||
{
|
||||
if ($menu->constraint)
|
||||
{
|
||||
$resultConstraint=$menu->addConstraint($result,$menu->constraint);
|
||||
if ($resultConstraint < 0)
|
||||
{
|
||||
$this->error=$menu->error;
|
||||
dol_syslog('DolibarrModules::addConstraint result='.$resultConstraint." ".$this->error, LOG_ERR);
|
||||
$err++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->menu[$key]['rowid']=$result;
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user