2
0
forked from Wavyzz/dolibarr

Move db->commit after trigger

This commit is contained in:
All-3kcis
2015-10-14 16:24:09 +02:00
parent 57ea4fc23d
commit 545f043353

View File

@@ -399,14 +399,13 @@ class Categorie extends CommonObject
}
else if ($reshook < 0) $error++;
$this->db->commit();
// Call trigger
$result=$this->call_trigger('CATEGORY_MODIFY',$user);
if ($result < 0) { $error++; $this->db->rollback(); return -1; }
// End call triggers
$this->db->commit();
return 1;
}
else