Closes FS#92
authorx2000bedo <x2000bedo>
Tue, 12 Oct 2004 21:51:58 +0000 (21:51 +0000)
committerx2000bedo <x2000bedo>
Tue, 12 Oct 2004 21:51:58 +0000 (21:51 +0000)
htdocs/advanced_search.php
htdocs/search.php

index d126fac..66ef7db 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: advanced_search.php,v 1.12 2004-10-12 21:22:44 x2000bedo Exp $
+        $Id: advanced_search.php,v 1.13 2004-10-12 21:51:58 x2000bedo Exp $
  ***************************************************************************/
 
 require("auto.prepend.inc.php");
@@ -105,7 +105,7 @@ else {
    
     $where = $fields->get_where_statement();
     $sql = 'SELECT SQL_CALC_FOUND_ROWS
-                       u.matricule,i.matricule_ax,
+                       DISTINCT u.matricule,i.matricule_ax,
                        1 AS inscrit,
                        u.nom,
                        u.epouse,
index 5003953..dc1f526 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: search.php,v 1.23 2004-10-12 21:22:44 x2000bedo Exp $
+        $Id: search.php,v 1.24 2004-10-12 21:51:58 x2000bedo Exp $
  ***************************************************************************/
 
 require("auto.prepend.inc.php");
@@ -61,7 +61,7 @@ if (array_key_exists('rechercher', $_REQUEST)) {
     $offset = new NumericSField('offset');
    
     $sql = 'SELECT SQL_CALC_FOUND_ROWS
-                       r.matricule,i.matricule_ax,
+                       DISTINCT r.matricule,i.matricule_ax,
                        u.nom!="" AS inscrit,
                        u.*,
                        UPPER(IF(u.nom!="",u.nom,i.nom)) AS nom,