inc-compilo-index.php3 inc-criteres.php3 1.19 1.14 1.20 1.15

Update of /home/spip-cvs/spip
In directory alan:/tmp/cvs-serv8752

Modified Files:
  inc-compilo-index.php3 inc-criteres.php3
Log Message:
mauvais démarrage des critères testant des champs à boucle explicite (avec une longueur pareille, pas étonnant qu'il y eut un bug; merci Paolo)

Index: inc-criteres.php3

RCS file: /home/spip-cvs/spip/inc-criteres.php3,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- inc-criteres.php3 16 Sep 2004 20:12:11 -0000 1.14
+++ inc-criteres.php3 18 Sep 2004 13:34:20 -0000 1.15
@@ -588,7 +588,7 @@
     $champ->nom_boucle = $regs[2];
     $champ->nom_champ = $regs[3];
     $champ->etoile = $regs[4];
- $champ->id_boucle = $idb;
+ $champ->id_boucle = $boucles[$idb]->id_parent;
     $champ->boucles = &$boucles;
     $champ->id_mere = $idb;
     $champ = calculer_champ($champ);

Index: inc-compilo-index.php3

RCS file: /home/spip-cvs/spip/inc-compilo-index.php3,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- inc-compilo-index.php3 15 Sep 2004 23:27:19 -0000 1.19
+++ inc-compilo-index.php3 18 Sep 2004 13:34:20 -0000 1.20
@@ -20,11 +20,10 @@
   global $exceptions_des_tables, $table_des_tables, $tables_des_serveurs_sql;

   $i = 0;
-
   if (strlen($explicite)) {
   // Recherche d'un champ dans un etage superieur
     while (($idb != $explicite) && ($idb !='')) {
-# spip_log("Cherchexpl: $nom_champ '$idb' '$i'");
+# spip_log("Cherchexpl: $nom_champ '$explicite' '$idb' '$i'");
       $i++;
       $idb = $boucles[$idb]->id_parent;
     }