MDL-38359 assign: Set header field name so it works with shortforms
authorDamyon Wiese <damyon@moodle.com>
Tue, 11 Jun 2013 07:25:01 +0000 (15:25 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 11 Jun 2013 07:25:01 +0000 (15:25 +0800)
Two forms were adding headers with empty names - fixed.

mod/assign/batchsetallocatedmarkerform.php
mod/assign/batchsetmarkingworkflowstateform.php

index 9695d69..f188b91 100644 (file)
@@ -42,7 +42,7 @@ class mod_assign_batch_set_allocatedmarker_form extends moodleform {
         $mform = $this->_form;
         $params = $this->_customdata;
 
-        $mform->addElement('header', '', get_string('batchsetallocatedmarker', 'assign', count($params['users'])));
+        $mform->addElement('header', 'general', get_string('batchsetallocatedmarker', 'assign', count($params['users'])));
         $mform->addElement('static', 'userslist', get_string('selectedusers', 'assign'), $params['usershtml']);
 
         $options = $params['markers'];
index 643e366..419cab7 100644 (file)
@@ -42,7 +42,7 @@ class mod_assign_batch_set_marking_workflow_state_form extends moodleform {
         $mform = $this->_form;
         $params = $this->_customdata;
 
-        $mform->addElement('header', '', get_string('batchsetmarkingworkflowstateforusers', 'assign', count($params['users'])));
+        $mform->addElement('header', 'general', get_string('batchsetmarkingworkflowstateforusers', 'assign', count($params['users'])));
         $mform->addElement('static', 'userslist', get_string('selectedusers', 'assign'), $params['usershtml']);
 
         $options = $params['markingworkflowstates'];