From 6251d5d1ea48f4ff90fcd40f8dba80399c296afb Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 5 Nov 2015 18:18:55 +0100 Subject: [PATCH] =?UTF-8?q?Task=20#1210=20-=20STOCK=5FINVHISTO:=20ne=20peu?= =?UTF-8?q?t=20pas=20enregistrer=20un=20changement=20de=20stock=20#1210=20?= =?UTF-8?q?:=20STOCK=5FINVHISTO=20:=20mise=20=C3=A0=20jour=20stock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/class/class_stock_goods.php | 2 +- include/stock_inv.inc.php | 2 +- include/template/stock_inv.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/class/class_stock_goods.php b/include/class/class_stock_goods.php index 5283d302d..6378e09f2 100644 --- a/include/class/class_stock_goods.php +++ b/include/class/class_stock_goods.php @@ -146,7 +146,7 @@ class Stock_Goods extends Stock_Goods_Sql $count=$cn->get_value('select count(*) from fiche_detail where ad_id=$1 and ad_value=$2', array(ATTR_DEF_STOCK,$stock)); if ( $count==0) { - throw new Exception("Code stock inexistant"); + throw new Exception(_("Code stock inutilisé").h($stock)); } $a->f_id=$fiche->id; $a->sg_code = $stock; diff --git a/include/stock_inv.inc.php b/include/stock_inv.inc.php index 5f2a4a8dc..a20e32603 100644 --- a/include/stock_inv.inc.php +++ b/include/stock_inv.inc.php @@ -43,7 +43,7 @@ if ( isset ($_POST['save'])) }catch(Exception $e) { alert($e->getMessage()); - $array=input($_POST); + $array=$_POST; } } else if ( isset ($_GET['reprise_frm']) ) { diff --git a/include/template/stock_inv.php b/include/template/stock_inv.php index 649382ce9..2c1bdea34 100644 --- a/include/template/stock_inv.php +++ b/include/template/stock_inv.php @@ -29,6 +29,7 @@ ?>
" class="content">
')"> +