Merge pull request #16237 from AlexisLaurier/13.0
13.0 - Fix db begin() not closed into commande.class.php
This commit is contained in:
commit
1f441deb5d
1 changed files with 1 additions and 1 deletions
|
|
@ -742,11 +742,11 @@ class Commande extends CommonOrder
|
|||
|
||||
if ($usercanclose)
|
||||
{
|
||||
$this->db->begin();
|
||||
if ($this->statut == self::STATUS_CLOSED)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
$this->db->begin();
|
||||
|
||||
$now = dol_now();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue