diff --git a/html/js/search_card.js b/html/js/search_card.js index 5dde3314a..bcd6dab6e 100644 --- a/html/js/search_card.js +++ b/html/js/search_card.js @@ -27,7 +27,7 @@ function showfiche(p_sessid,p_qcode) { p_dossier=document.getElementById("gDossier").value; - var a=window.open('show_fiche.php?PHPSESSID='+p_sessid+'&gDossier='+p_dossier+'&q='+qcode,'','toolbar=no,width=350,height=450,scrollbar=yes,statusbar=no'); + var a=window.open('show_fiche.php?PHPSESSID='+p_sessid+'&gDossier='+p_dossier+'&q='+p_qcode,'','toolbar=no,width=350,height=450,scrollbar=yes,statusbar=no'); } diff --git a/html/show_fiche.php b/html/show_fiche.php index f1ee2c37f..da5817054 100644 --- a/html/show_fiche.php +++ b/html/show_fiche.php @@ -24,7 +24,6 @@ * \brief This file show in a popup window the detail a of card in read only mode * the parameter are q (for qcode) & PHPSESSID */ - /*! \brief * */ diff --git a/include/class_contact.php b/include/class_contact.php index edc9bdc64..5dcea4cf5 100644 --- a/include/class_contact.php +++ b/include/class_contact.php @@ -54,7 +54,7 @@ class contact extends fiche if ( $this->company != "") { $extra_sql="and f_id in (select f_id from jnt_fic_att_value join -attr_value using (jft_id) where av_text='".$this->company."' and ad_id=".ATTR_DEF_COMPANY.") "; +attr_value using (jft_id) where av_text=upper('".$this->company."') and ad_id=".ATTR_DEF_COMPANY.") "; } $url=urlencode($_SERVER['REQUEST_URI']); $script=$_SERVER['PHP_SELF']; @@ -130,7 +130,7 @@ $back_url=urlencode($_SERVER['REQUEST_URI']); $r.="