mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-22 08:43:16 +01:00
FIX : allow setDraft on cancelled orders if ORDER_REOPEN_TO_DRAFT is set (#30396)
* Fix missing loading trans file * FIX : allow setDraft on cancelled orders if ORDER_REOPEN_TO_DRAFT is set --------- Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net> Co-authored-by: Christophe Battarel <christophe@altairis.fr>
This commit is contained in:
committed by
GitHub
parent
82589285e7
commit
97b4093d22
@@ -643,7 +643,7 @@ class Commande extends CommonOrder
|
||||
$error = 0;
|
||||
|
||||
// Protection
|
||||
if ($this->statut <= self::STATUS_DRAFT) {
|
||||
if ($this->statut <= self::STATUS_DRAFT && !getDolGlobalInt('ORDER_REOPEN_TO_DRAFT')) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user