From fc7548a03bb939f3d4cf8b69f32bc05104bb7260 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 26 Dec 2013 23:29:09 +0000 Subject: [PATCH] =?UTF-8?q?Recherche=20par=20Nom,=20pr=C3=A9nom,=20quickco?= =?UTF-8?q?de,=20num=C3=A9ro=20TVA=20et=20num=C3=A9ro=20client=20Task=20#9?= =?UTF-8?q?54=20-=20CUST,=20SUPPLIER...=20Recherche=20par=20quick=20code?= =?UTF-8?q?=20ne=20fonctionne=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/class_fiche.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/class_fiche.php b/include/class_fiche.php index 7c5f4f69e..10f1c3667 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -310,7 +310,6 @@ class Fiche } $Ret=$this->cn->exec_sql($sql); - if ( ($Max=Database::num_row($Ret)) == 0 ) return ; $all[0]=new Fiche($this->cn); @@ -1536,7 +1535,7 @@ class Fiche if ( $p_amount) $filter_amount=' and f_id in (select f_id from jrnx where '.$filter_year.')'; - $all_tiers=$this->count_by_modele($this->fiche_def_ref,$p_search,$p_sql.$filter_amount); + $all_tiers=$this->count_by_modele($this->fiche_def_ref,"",$p_sql.$filter_amount); // Get offset and page variable $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; @@ -1553,9 +1552,9 @@ class Fiche if ( trim($p_search) != "" ) { $search.=" and f_id in - (select f_id from fiche_detail + (select distinct f_id from fiche_detail where - ad_id=1 and ad_value ~* '$p_search')"; + ad_id in (1,32,30,23,18,13) and ad_value ~* '$p_search')"; } // Get The result Array $step_tiers=$this->GetAll($offset,$search.$filter_amount,'name');