From 223a5a60a0ddaaec3d5cf9dd832703b404f01df8 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Tue, 15 Nov 2005 10:59:23 +0000
Subject: [PATCH] bon, je suis alle trop vite en ne reportant que la motie du
 patch de Simon

---
 inc-criteres.php3 | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/inc-criteres.php3 b/inc-criteres.php3
index 7abb893ee9..94ceaffb12 100644
--- a/inc-criteres.php3
+++ b/inc-criteres.php3
@@ -770,10 +770,14 @@ function calculer_critere_infixe_date($idb, &$boucles, $col, $suite)
 	$boucle = $boucles[$idb];
 
 	if ($suite) {
-	    $date_orig = "date_redac";
-	} else {
-	    $date_orig = $table_date[$boucle->type_requete];
-	  }
+	# NOTE : A transformer en recherche de l'existence du champ date_xxxx,
+	# si oui choisir ce champ, sinon choisir xxxx
+		if ($suite =='_redac' OR $suite=='_modif')
+			$date_orig = 'date'.$suite;
+		else
+			$date_orig = substr($suite, 1);
+	} else
+		$date_orig = $table_date[$boucle->type_requete];
 
 	$date_orig = $boucle->id_table . ".$date_orig";
 	$date_compare = '\'" . normaliser_date(' .
-- 
GitLab