FIX : update limit stock on product stock

This commit is contained in:
florian HENRY 2016-08-03 17:29:04 +02:00
parent 597f5dae15
commit 5f415478ac

View File

@ -50,7 +50,7 @@ $cancel=GETPOST('cancel');
$id=GETPOST('id', 'int');
$ref=GETPOST('ref', 'alpha');
$stocklimit = GETPOST('stocklimit');
$stocklimit = GETPOST('seuil_stock_alerte');
$desiredstock = GETPOST('desiredstock');
$cancel = GETPOST('cancel');
$fieldid = isset($_GET["ref"])?'ref':'rowid';
@ -70,7 +70,7 @@ $result=restrictedArea($user,'produit&stock',$id,'product&product','','',$fieldi
if ($cancel) $action='';
// Set stock limit
if ($action == 'setstocklimit')
if ($action == 'setseuil_stock_alerte')
{
$object = new Product($db);
$result=$object->fetch($id);