Fix: update method return $this->error not $this->errors

This commit is contained in:
Regis Houssin 2012-08-07 12:00:22 +02:00
parent 71a4a2b7f9
commit 5564421e3f

View File

@ -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='';
}