Fix: Warning when deleting order line

This commit is contained in:
Laurent Destailleur
2008-05-01 22:22:15 +00:00
parent c1f38a1434
commit d6a25f78cf

View File

@@ -1186,6 +1186,8 @@ class Commande extends CommonObject
*/
function delete_line($idligne)
{
global $user;
if ($this->statut == 0)
{
$this->db->begin();
@@ -1210,7 +1212,7 @@ class Commande extends CommonObject
$ligne = new CommandeLigne($this->db);
$ligne->id = $idligne;
$ligne->fk_commande = $this->id; // On en a besoin dans les triggers
$result=$ligne->delete();
$result=$ligne->delete($user);
if ($result > 0)
{