From a97241f71682f59ff629c881b0566696becd42b1 Mon Sep 17 00:00:00 2001 From: Cubexed Date: Sat, 23 Aug 2014 17:05:08 +0200 Subject: [PATCH] Fix unable to delete order line Calling trigger without having globalized $conf causes error and cancels delete operation, this commit adds the missing 2014-08-23 16:52:05 ERR 127.0.0.1 Interfaces::run_triggers was called with wrong parameters action=LINEORDER_SUPPLIER_DELETE object=1 user= langs= conf= --- htdocs/fourn/class/fournisseur.commande.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index f083318948e..0b62fc91526 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1379,6 +1379,7 @@ class CommandeFournisseur extends CommonOrder */ function deleteline($idline, $notrigger=0) { + global $user,$langs,$conf; if ($this->statut == 0) { $this->db->begin();