From f8ac73e09ea9950446ef0967cbd72db588f9d633 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Mon, 25 Jul 2011 21:06:33 +0000
Subject: [PATCH] support de {!racine} (tetue)

---
 ecrire/public/criteres.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ecrire/public/criteres.php b/ecrire/public/criteres.php
index f2e7d76535..2f1ba74545 100644
--- a/ecrire/public/criteres.php
+++ b/ecrire/public/criteres.php
@@ -33,10 +33,8 @@ function critere_racine_dist($idb, &$boucles, $crit) {
 		$exceptions_des_tables[$boucle->id_table]['id_parent'] :
 		'id_parent';
 
-	if ($not)
-		return (array('zbug_critere_inconnu', array('critere' => $not . $crit->op)));
-
-	$boucle->where[]= array("'='", "'$boucle->id_table." . "$id_parent'", 0);
+	$c = array("'='", "'$boucle->id_table." . "$id_parent'", 0);
+	$boucle->where[]= ($crit->not ? array("'NOT'", $c) : $c);
 }
 
 // {exclus}
-- 
GitLab