Merge pull request #33179 from Thrive-ERP/bom

Fixed: 33178
This commit is contained in:
Laurent Destailleur 2025-02-21 15:56:20 +01:00 committed by GitHub
commit 51a648f7ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;