mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Merge
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user