Browse Source

Fix missing test on $error

Laurent Destailleur 9 years ago
parent
commit
9dade02dba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/societe/class/societe.class.php

+ 1 - 1
htdocs/societe/class/societe.class.php

@@ -1347,7 +1347,7 @@ class Societe extends CommonObject
             $this->db->begin();
 
             // User is mandatory for trigger call
-            if ($call_trigger)
+            if (! $error && $call_trigger)
             {
                 // Call trigger
                 $result=$this->call_trigger('COMPANY_DELETE',$fuser);