From 95b07cba1b9260b1eb85bb35e12b32469067d112 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 8 Aug 2010 18:01:43 +0000 Subject: [PATCH] add a limit for the card search by typing part of the name --- html/fid_card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/fid_card.php b/html/fid_card.php index 4ca8a2e4b..7db093634 100644 --- a/html/fid_card.php +++ b/html/fid_card.php @@ -104,7 +104,7 @@ if ( $jrn != -1 ) { $filter_card; */ -$sql_str="select distinct f_id from fiche join jnt_fic_att_value using (f_id) join attr_value using(jft_id) where ad_id in (9,1,23) and av_text ilike '%'||$1||'%' ".$filter_card; +$sql_str="select distinct f_id from fiche join jnt_fic_att_value using (f_id) join attr_value using(jft_id) where ad_id in (9,1,23) and av_text ilike '%'||$1||'%' ".$filter_card.' limit 12'; $sql=$cn->get_array($sql_str ,array($_REQUEST['FID']));