Fix: missing "$disableremove" global
This commit is contained in:
parent
c0c8a70dd5
commit
df55bee8ae
@ -2302,7 +2302,7 @@ if ($action == 'create')
|
|||||||
$ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
|
$ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
|
||||||
|
|
||||||
// Form to add new line
|
// Form to add new line
|
||||||
if ($object->statut == Propal::STATUS_DRAFT && $usercancreate && $action != 'selectlines')
|
if ($object->statut == Propal::STATUS_DRAFT && $usercancreate && $action != 'selectlines')
|
||||||
{
|
{
|
||||||
if ($action != 'editline')
|
if ($action != 'editline')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3838,7 +3838,7 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
global $conf,$langs,$user,$object,$hookmanager;
|
global $conf,$langs,$user,$object,$hookmanager;
|
||||||
global $form,$bc,$bcdd;
|
global $form,$bc,$bcdd;
|
||||||
global $object_rights, $disableedit, $disablemove; // TODO We should not use global var for this !
|
global $object_rights, $disableedit, $disablemove, $disableremove; // TODO We should not use global var for this !
|
||||||
|
|
||||||
$object_rights = $this->getRights();
|
$object_rights = $this->getRights();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user