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
@ -742,11 +742,11 @@ class Commande extends CommonOrder
|
|||||||
|
|
||||||
if ($usercanclose)
|
if ($usercanclose)
|
||||||
{
|
{
|
||||||
$this->db->begin();
|
|
||||||
if ($this->statut == self::STATUS_CLOSED)
|
if ($this->statut == self::STATUS_CLOSED)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
$this->db->begin();
|
||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user