From 545f0433538f0a63014fd8f2927562e6b07ee491 Mon Sep 17 00:00:00 2001 From: All-3kcis Date: Wed, 14 Oct 2015 16:24:09 +0200 Subject: [PATCH] Move db->commit after trigger --- htdocs/categories/class/categorie.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 933791db41d..46a48b31bf8 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -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