From 6acbaf81f22f0dd12805c77bf0f20766893af104 Mon Sep 17 00:00:00 2001 From: Pratush Raj Date: Fri, 21 Feb 2025 19:05:08 +0530 Subject: [PATCH] Fixed: 33178 --- htdocs/bom/class/bom.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php index 1099a9d0ff7..9952525b258 100644 --- a/htdocs/bom/class/bom.class.php +++ b/htdocs/bom/class/bom.class.php @@ -292,7 +292,7 @@ class BOM extends CommonObject * @param int $notrigger false=launch triggers after, true=disable triggers * @return int Return integer <0 if KO, Id of created object if OK */ - public function create(User $user, $notrigger = 1) + public function create(User $user, $notrigger = 0) { if ($this->efficiency <= 0 || $this->efficiency > 1) { $this->efficiency = 1; @@ -546,7 +546,7 @@ class BOM extends CommonObject * @param int $notrigger 0=launch triggers after, 1=disable triggers * @return int Return integer <0 if KO, >0 if OK */ - public function update(User $user, $notrigger = 1) + public function update(User $user, $notrigger = 0) { if ($this->efficiency <= 0 || $this->efficiency > 1) { $this->efficiency = 1;