diff --git a/inc/rechercher_joints_formulaires_reponse_formulaires_reponses_champ.php b/inc/rechercher_joints_formulaires_reponse_formulaires_reponses_champ.php index 0fa3290877f7e2243b59e9099d95e9199356ec26..2c8f244a0e713957abd7190387e20fa065df7169 100644 --- a/inc/rechercher_joints_formulaires_reponse_formulaires_reponses_champ.php +++ b/inc/rechercher_joints_formulaires_reponse_formulaires_reponses_champ.php @@ -13,10 +13,10 @@ function inc_rechercher_joints_formulaires_reponse_formulaires_reponses_champ_di ) { $cle_depart = 'id_formulaires_reponse'; - $cle_arrivee = 'id_formulaires_reponse'; + $cle_arrivee = 'id_formulaires_reponses_champ'; $s = sql_select( - "DISTINCT R.$cle_depart", + "R.$cle_depart, C.$cle_arrivee", 'spip_formulaires_reponses AS R JOIN spip_formulaires_reponses_champs AS C ON C.id_formulaires_reponse=R.id_formulaires_reponse', sql_in('C.id_formulaires_reponses_champ', $ids_trouves), '',