Clean code
This commit is contained in:
parent
003c463ee4
commit
efb88292dd
@ -130,7 +130,7 @@ if ($action == 'addlimitstockwarehouse' && !empty($user->rights->produit->creer)
|
||||
if($maj_ok) {
|
||||
|
||||
$pse = new ProductStockEntrepot($db);
|
||||
if($pse->fetch('', $id, GETPOST('fk_entrepot')) > 0) {
|
||||
if($pse->fetch(0, $id, GETPOST('fk_entrepot')) > 0) {
|
||||
|
||||
// Update
|
||||
$pse->seuil_stock_alerte = $seuil_stock_alerte;
|
||||
@ -159,7 +159,7 @@ if($action == 'delete_productstockwarehouse' && !empty($user->rights->produit->c
|
||||
{
|
||||
|
||||
$pse = new ProductStockEntrepot($db);
|
||||
$pse->fetch(GETPOST('fk_productstockwarehouse'));
|
||||
$pse->fetch(GETPOST('fk_productstockwarehouse','int'));
|
||||
if($pse->delete($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseDeleted'));
|
||||
|
||||
$action = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user