MDL-57660 mod_forum: Preserve forum ID selection after form submission
[moodle.git] / mod / forum / templates / big_search_form.mustache
index 6fc760c..f9371f2 100644 (file)
                 <td class="c1">
                     <select name="forumid" id="menuforumid">
                         {{#forumoptions}}
                 <td class="c1">
                     <select name="forumid" id="menuforumid">
                         {{#forumoptions}}
-                            <option value="{{value}}">{{name}}</option>
+                            <option value="{{value}}" {{#selected}}selected{{/selected}}>{{name}}</option>
                         {{/forumoptions}}
                     </select>
                 </td>
                         {{/forumoptions}}
                     </select>
                 </td>