From 9f11e8e872b477b292dd0e32af08be9609a11576 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Mon, 15 Apr 2002 11:12:18 +0000 Subject: [PATCH] bug ORDER BY avec nouvelle spip_query() [Nicolas] * Il doit y avoir un pb similaire dans inc-calcul-squel : else if ($match[1] == 'titre_mot'){ $req_order= " ORDER BY spip_mots.titre"; } else if ($match[1] == 'type_mot'){ $req_order= " ORDER BY spip_mots.type"; a verifier... --- ecrire/inc_mots.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc_mots.php3 b/ecrire/inc_mots.php3 index fda443ab7f..9003f1f5e2 100644 --- a/ecrire/inc_mots.php3 +++ b/ecrire/inc_mots.php3 @@ -223,7 +223,7 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot, unset($les_mots); - $query = "SELECT mots.* FROM spip_mots AS mots, spip_mots_$table AS lien WHERE lien.$id_table=$id_objet AND mots.id_mot=lien.id_mot ORDER BY spip_mots.type, spip_mots.titre"; + $query = "SELECT mots.* FROM spip_mots AS mots, spip_mots_$table AS lien WHERE lien.$id_table=$id_objet AND mots.id_mot=lien.id_mot ORDER BY mots.type, mots.titre"; $result = spip_query($query); echo "<table border=0 cellspacing=0 cellpadding=2 width=100% background=''>"; -- GitLab