dolGetGlobalInt -> getDolGlobalInt
Detected with phan -> https://github.com/Dolibarr/dolibarr/actions/runs/7242660297/job/19728384233?pr=26480#step:5:39
This commit is contained in:
parent
770bc15ca3
commit
e49f32ab2d
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ if (empty($reshook)) {
|
|||
} elseif ($action == 'reopen' && $usercancreate) {
|
||||
// Reopen a closed order
|
||||
if ($object->statut == Commande::STATUS_CANCELED || $object->statut == Commande::STATUS_CLOSED) {
|
||||
if (dolGetGlobalInt('ORDER_REOPEN_TO_DRAFT')) {
|
||||
if (getDolGlobalInt('ORDER_REOPEN_TO_DRAFT')) {
|
||||
$result = $object->setDraft($user, $idwarehouse);
|
||||
if ($result < 0) {
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
|
|
|
|||
Loading…
Reference in a new issue