From 00f2fb788435ac3c37a5dbe19c03a6c8470922e5 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 29 Oct 2010 20:30:18 +0000 Subject: [PATCH] Merged revisions 3726 via svnmerge from svn+ssh://danydb@svn/svn/phpcompta/branches/rel520-attr_value ........ r3726 | danydb | 2010-10-29 22:20:45 +0200 (Fri, 29 Oct 2010) | 1 line Task #117 : join attr_value and jnt_fic_att_value into the table fiche_detail ........ --- html/fid_card.php | 4 +- html/poste_pdf.php | 2 +- html/quick_code_pdf.php | 2 +- include/class_contact.php | 10 +- include/class_fiche.php | 79 ++-- include/class_fiche_attr.php | 4 +- include/class_fiche_def.php | 15 +- include/class_print_ledger_detail.php | 2 +- include/fiche.inc.php | 6 +- include/modele.inc.php | 3 +- include/stock_inc.php | 5 +- sql/upgrade.sql | 497 ++++++++++++++++++++++++++ 12 files changed, 551 insertions(+), 78 deletions(-) diff --git a/html/fid_card.php b/html/fid_card.php index 2e17067c5..c0457d176 100644 --- a/html/fid_card.php +++ b/html/fid_card.php @@ -111,14 +111,14 @@ else $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_str="select distinct f_id from fiche join fiche_detail using (f_id) where ad_id in (9,1,23) and ad_value ilike '%'||$1||'%' ".$filter_card.' limit 12'; $sql=$cn->get_array($sql_str ,array($_REQUEST['FID'])); if (sizeof($sql) != 0 ) { echo "