Merge pull request #16237 from AlexisLaurier/13.0

13.0 - Fix db begin() not closed into commande.class.php
This commit is contained in:
Laurent Destailleur 2021-02-09 18:06:36 +01:00 committed by GitHub
commit 1f441deb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();