Skip to content
Extraits de code Groupes Projets
Valider 2215e22b rédigé par esj's avatar esj
Parcourir les fichiers

cas des jointures hors criteres [5981]: Oups.

parent b49604aa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -252,8 +252,10 @@ function boucle_SYNDIC_ARTICLES_dist($id_boucle, &$boucles) { ...@@ -252,8 +252,10 @@ function boucle_SYNDIC_ARTICLES_dist($id_boucle, &$boucles) {
$boucle->where[] ="$id_table.statut IN ('publie','prop')"; $boucle->where[] ="$id_table.statut IN ('publie','prop')";
else { else {
$jointure = array_search("spip_syndic", $boucle->from); $jointure = array_search("spip_syndic", $boucle->from);
if (!$jointure) if (!$jointure) {
$jointure = 'J' . count($boucle->from); $jointure = 'J' . count($boucle->from);
$boucle->from[$jointure] = 'spip_syndic';
}
$boucle->where[] = $id_table . ".statut='publie'"; $boucle->where[] = $id_table . ".statut='publie'";
$boucle->where[] = $jointure . ".statut='publie'"; $boucle->where[] = $jointure . ".statut='publie'";
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter