Fix param not defined
This commit is contained in:
parent
bb9f4c8ec3
commit
c5da131749
@ -558,9 +558,10 @@ class Mo extends CommonObject
|
|||||||
* Erase and update the line to produce.
|
* Erase and update the line to produce.
|
||||||
*
|
*
|
||||||
* @param User $user User that modifies
|
* @param User $user User that modifies
|
||||||
|
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function updateProduction(User $user)
|
public function updateProduction(User $user, $notrigger = true)
|
||||||
{
|
{
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
@ -592,7 +593,7 @@ class Mo extends CommonObject
|
|||||||
$moline->role = 'toproduce';
|
$moline->role = 'toproduce';
|
||||||
$moline->position = 1;
|
$moline->position = 1;
|
||||||
|
|
||||||
$resultline = $moline->create($user);
|
$resultline = $moline->create($user, false); // Never use triggers here
|
||||||
if ($resultline <= 0) {
|
if ($resultline <= 0) {
|
||||||
$error++;
|
$error++;
|
||||||
$this->error = $moline->error;
|
$this->error = $moline->error;
|
||||||
@ -624,7 +625,7 @@ class Mo extends CommonObject
|
|||||||
$moline->qty_frozen = $line->qty_frozen;
|
$moline->qty_frozen = $line->qty_frozen;
|
||||||
$moline->disable_stock_change = $line->disable_stock_change;
|
$moline->disable_stock_change = $line->disable_stock_change;
|
||||||
|
|
||||||
$resultline = $moline->create($user);
|
$resultline = $moline->create($user, false); // Never use triggers here
|
||||||
if ($resultline <= 0) {
|
if ($resultline <= 0) {
|
||||||
$error++;
|
$error++;
|
||||||
$this->error = $moline->error;
|
$this->error = $moline->error;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user