From c879232fd7533d75473a9e840fa9929056f0f8ae Mon Sep 17 00:00:00 2001 From: BENKE Charlene Date: Tue, 24 Apr 2018 23:41:12 +0200 Subject: [PATCH] add $user on delete line possible to hamonize the call function for all line->delete ? --- htdocs/fourn/class/fournisseur.facture.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index 46075c5641f..d4b1c14b522 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -2762,6 +2762,8 @@ class SupplierInvoiceLine extends CommonObjectLine */ public function delete($notrigger = 0) { + global $user; + dol_syslog(get_class($this)."::deleteline rowid=".$this->id, LOG_DEBUG); $error = 0; @@ -2769,7 +2771,7 @@ class SupplierInvoiceLine extends CommonObjectLine $this->db->begin(); if (!$notrigger) { - if ($this->call_trigger('LINEBILL_SUPPLIER_DELETE',$user) < 0) { + if ($this->call_trigger('LINEBILL_SUPPLIER_DELETE', $user) < 0) { $error++; } }