Fix: No change if error on trigger

This commit is contained in:
Laurent Destailleur 2014-06-24 22:14:45 +02:00
parent 04ead87aea
commit 54f55cf03e

View File

@ -290,13 +290,6 @@ class Commande extends CommonOrder
} }
} }
// Set new ref and current status
if (! $error)
{
$this->ref = $num;
$this->statut = 1;
}
if (! $error) if (! $error)
{ {
// Appel des triggers // Appel des triggers
@ -307,6 +300,13 @@ class Commande extends CommonOrder
// Fin appel triggers // Fin appel triggers
} }
// Set new ref and current status
if (! $error)
{
$this->ref = $num;
$this->statut = 1;
}
if (! $error) if (! $error)
{ {
$this->db->commit(); $this->db->commit();