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 @@ ?>