From f7883c6cb6e5e254da8956ad3d1386666d6ccc0c Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Mon, 20 Jun 2011 06:59:04 +0000
Subject: [PATCH] Fix: include trigger

---
 htdocs/compta/facture/class/facture.class.php | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php
index 3621d266240..175b455bc2e 100644
--- a/htdocs/compta/facture/class/facture.class.php
+++ b/htdocs/compta/facture/class/facture.class.php
@@ -1031,15 +1031,12 @@ class Facture extends CommonObject
         {
             if (! $notrigger)
             {
-                // Uncomment this and change MYOBJECT to your own tag if you
-                // want this action call a trigger.
-
-                //// Call triggers
-                //include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
-                //$interface=new Interfaces($this->db);
-                //$result=$interface->run_triggers('BILL_MODIFY',$this,$user,$langs,$conf);
-                //if ($result < 0) { $error++; $this->errors=$interface->errors; }
-                //// End call triggers
+                // Call triggers
+                include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
+                $interface=new Interfaces($this->db);
+                $result=$interface->run_triggers('BILL_MODIFY',$this,$user,$langs,$conf);
+                if ($result < 0) { $error++; $this->errors=$interface->errors; }
+                // End call triggers
             }
         }
 
-- 
GitLab