MDL-47980 gradebook: fixed label for bulk insert select box
authorJetha Chan <jetha@moodle.com>
Thu, 6 Nov 2014 08:37:23 +0000 (16:37 +0800)
committerJetha Chan <jetha@moodle.com>
Thu, 6 Nov 2014 08:37:23 +0000 (16:37 +0800)
grade/report/singleview/classes/local/ui/bulk_insert.php

index 250f654..24b715e 100644 (file)
@@ -95,10 +95,16 @@ class bulk_insert extends element {
 
         $selectlabel = html_writer::label(
             $insertappliesto,
 
         $selectlabel = html_writer::label(
             $insertappliesto,
-            $this->selectname
+            'menu' . $this->selectname
         );
         $select = html_writer::select(
         );
         $select = html_writer::select(
-            $insertoptions, $this->selectname, 'blanks', false
+            $insertoptions,
+            $this->selectname,
+            'blanks',
+            false,
+            array(
+                'id' => 'menu' . $this->selectname
+            )
         );
 
         $textlabel = html_writer::label(
         );
 
         $textlabel = html_writer::label(