From 9a0771b089f970a771e1885eba8be9f85941a66f Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 11 Jan 2006 18:52:22 +0000
Subject: [PATCH] bug introduit par [5337] qui donne acces aux champs des
 jointures explicites dans les squelettes mais ne le donnait plus pour celles
 declarees par PHP (neofutur)

---
 inc-compilo-index.php3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc-compilo-index.php3 b/inc-compilo-index.php3
index 654d323bee..8c4329ca32 100644
--- a/inc-compilo-index.php3
+++ b/inc-compilo-index.php3
@@ -103,7 +103,7 @@ function index_tables_en_pile($idb, $nom_champ, &$boucles)
 			    $boucles[$idb]->from[$t] = $excep[0];
 			}
 			$e = $excep[1];
-			if ($e != $c) $e .= ' AS '.$c;
+			if ($e != $nom_champ) $e .= ' AS '.$c;
 		}
 		return array("$t.$e", $c);
 
-- 
GitLab