Merge pull request #3735 from All-3kcis/develop-patch-8
Update function, move commit after trigger in categorie.class.php
This commit is contained in:
commit
ed4013bb31
@ -399,14 +399,13 @@ class Categorie extends CommonObject
|
|||||||
}
|
}
|
||||||
else if ($reshook < 0) $error++;
|
else if ($reshook < 0) $error++;
|
||||||
|
|
||||||
$this->db->commit();
|
|
||||||
|
|
||||||
|
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('CATEGORY_MODIFY',$user);
|
$result=$this->call_trigger('CATEGORY_MODIFY',$user);
|
||||||
if ($result < 0) { $error++; $this->db->rollback(); return -1; }
|
if ($result < 0) { $error++; $this->db->rollback(); return -1; }
|
||||||
// End call triggers
|
// End call triggers
|
||||||
|
|
||||||
|
$this->db->commit();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user