This commit is contained in:
ldestailleur
2025-02-25 02:44:30 +01:00
parent fb29ff5d59
commit 030d83145f
6 changed files with 13 additions and 9 deletions

View File

@@ -293,7 +293,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;
@@ -553,7 +553,7 @@ class BOM extends CommonObject
* @param int<0,1> $notrigger 0=launch triggers after, 1=disable triggers
* @return int<-1,-1>|int<1,1> 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;