From 300f126743d0b48c774ca11995c1fab9faa71994 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 22 Nov 2011 13:49:49 +0000 Subject: [PATCH] Correction dirigeant --- library/Metier/sphinx2/SDmotor.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/library/Metier/sphinx2/SDmotor.class.php b/library/Metier/sphinx2/SDmotor.class.php index a092a5b6..5df8f94c 100644 --- a/library/Metier/sphinx2/SDmotor.class.php +++ b/library/Metier/sphinx2/SDmotor.class.php @@ -139,7 +139,8 @@ Class SDmotor 'Durée exécution :' => $total_time, 'Erreure :' => 'Le formulaire est Vide !') ); - $this->sphinx->SetSortMode(SPH_SORT_EXTENDED, 'sirenValide DESC, rang DESC, actif DESC, siege DESC'); + if($this->index == 'ent') + $this->sphinx->SetSortMode(SPH_SORT_EXTENDED, 'sirenValide DESC, rang DESC, actif DESC, siege DESC'); $this->sphinx->SetLimits(intval($this->deb), intval($this->nbRep), intval($this->max)); $this->maxSizeWord = 0; switch($this->formR['SPH_MATCH']) { @@ -542,6 +543,7 @@ Class SDmotor switch($seq) { case 'radica': //$request = substr(trim($this->formR['raisonSociale']), 0, 3); + continue; break; case 'quorum': $request .= ' "'.$this->formR[$name].'"'.(($quorum[0] >= 1)?'/'.$quorum[0]:''); @@ -554,7 +556,8 @@ Class SDmotor if(strlen($this->formR[$name]) > 5) { $request .= '"'.$this->formatRaisonSociale($this->formR[$name], true).'" | '; $request .= '"'.$this->formatRaisonSociale($this->formR[$name], true).'" '.(($quorum[0] >= 1)?'/'.$quorum[0]:'').' '; - } + } else + continue; break; case 'points': $request .= '"'.str_replace('.', '', $this->formR[$name]).'"'; @@ -562,7 +565,8 @@ Class SDmotor case 'acrony': if(!empty($this->acronyme) and strlen($this->acronyme) > 2) { $request .= '"'.$this->acronyme.' '.$this->formatRaisonSociale($this->formR[$name]).'"/'.$quorum[0]; - } + } else + continue; break; case 'split': for($count=0;$count < 2; $count++) {