From b8dfee2a3bdfcc3617cb58b5f76c984c058f31f9 Mon Sep 17 00:00:00 2001 From: fhenry Date: Tue, 15 Jan 2013 23:03:03 +0100 Subject: [PATCH 1/2] Fix bug [ bug #692 ] Can't search for suppliers invoice --- htdocs/fourn/facture/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 089033fafce..b6cb75e4125 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -126,7 +126,7 @@ if (GETPOST('filtre')) if (GETPOST("search_ref")) { - $sql .= " AND fac.rowid LIKE '%".$db->escape(GETPOST("search_ref"))."%'"; + $sql .= " AND fac.rowid = ".$db->escape(GETPOST("search_ref")); } if (GETPOST("search_ref_supplier")) { From ff06b05b3d5333fb1f8132188e42c23bdc93dd7d Mon Sep 17 00:00:00 2001 From: fhenry Date: Tue, 15 Jan 2013 23:04:42 +0100 Subject: [PATCH 2/2] Fix Bug [ bug #681 ] Can't modify a line a business proposal --- htdocs/comm/propal/class/propal.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 0e5e6e661c8..bcf0e1bc3e0 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -2786,7 +2786,6 @@ class PropaleLigne } $sql.= " , fk_product_fournisseur_price='".$this->fk_fournprice."'"; $sql.= " , buy_price_ht='".price2num($this->pa_ht)."'"; - $sql.= " , info_bits=".$this->info_bits; if (strlen($this->special_code)) $sql.= " , special_code=".$this->special_code; $sql.= " , fk_parent_line=".($this->fk_parent_line>0?$this->fk_parent_line:"null"); if (! empty($this->rang)) $sql.= ", rang=".$this->rang;