Fix tmpl error.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Feb 2011 21:11:00 +0000 (22:11 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Feb 2011 21:11:00 +0000 (22:11 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/survey/edit.questions.tpl

index 4fbfceb..c7f0143 100644 (file)
     <div>
       Ajouter une case Autre ?
       <select name="q_edit[${qid}][allow_other]">
-        <option value="1" {{if allow_other}}selected="selected"{{/if}}>Oui</option>
-        <option value="" {{if !allow_other}}selected="selected"{{/if}}>Non</option>
+        <option value="1" {{if $item.allow_other}}selected="selected"{{/if}}>Oui</option>
+        <option value="" {{if !$item.allow_other}}selected="selected"{{/if}}>Non</option>
       </select>
     </div>
   </div>