Fix: update method return $this->error not $this->errors
This commit is contained in:
parent
71a4a2b7f9
commit
5564421e3f
@ -63,7 +63,7 @@ if ($action == 'setstocklimit')
|
||||
$product->seuil_stock_alerte=$stocklimit;
|
||||
$result=$product->update($product->id,$user,1,0,1);
|
||||
if ($result < 0)
|
||||
setEventMessage($product->errors, 'errors');
|
||||
setEventMessage($product->error, 'errors');
|
||||
$action='';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user