Opened 12 years ago

#234 new defect

Sondage results apperar twice

Reported by: biel Owned by: gvincent
Priority: normale Component: plugins/forms
Severity: normale Keywords:
Cc:

Description

I've created a sondage with two fields. After voting, if you go to the article page, sondage results appera twice.

I think the problem is in /formulaires/forms_structure.html , because #RESULTATS_SONDAGE is in boucle_champs. I would change: 1 <BOUCLE_form(FORMS){id_form=#ENV{id_form}}> 2 #SET{need_fieldset,1} 3 <BOUCLE_champs(FORMS_CHAMPS){id_form}> 4 [(#ENV{affiche_sondage}) #RESULTATS_SONDAGE] by: 1 <BOUCLE_form(FORMS){id_form=#ENV{id_form}}> 2 #SET{need_fieldset,1} 4 [(#ENV{affiche_sondage}) #RESULTATS_SONDAGE] 3 <BOUCLE_champs(FORMS_CHAMPS){id_form}>

By the way, also apperars submit button. It could be removed: NEW [(#ENV{affiche_sondage}|?{,' '}) 69 <p style='display:none;'><label for="nobotnobot"><:antispam_champ_vide:></label> 70 <input type="text" name="nobotnobot" id="nobotnobot" value="#ENV{nobotnobot}" size="10" /></p> 71 72 <div style='text-align:#LANG_RIGHT' class='spip_bouton'><input type="submit" name='Valider' value="<:bouton_valider:>" /></div> NEW ]

Change History (0)

Note: See TracTickets for help on using tickets.