MDL-47494 gapselect: Select menus should start saying 'Choose ...', not blank.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 5 Dec 2011 12:51:08 +0000 (12:51 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 5 Dec 2011 12:51:08 +0000 (12:51 +0000)
question/type/gapselect/renderer.php

index c3a0ec7..20bb3a3 100644 (file)
@@ -72,7 +72,7 @@ class qtype_gapselect_renderer extends qtype_elements_embedded_in_question_text_
         }
 
         $selecthtml = html_writer::select($selectoptions, $qa->get_qt_field_name($fieldname),
-                $value, ' ', $attributes) . ' ' . $feedbackimage;
+                $value, get_string('choosedots'), $attributes) . ' ' . $feedbackimage;
         return html_writer::tag('span', $selecthtml, array('class' => 'control '.$groupclass));
     }