MDL-38359 assign: Set header field name so it works with shortforms

Two forms were adding headers with empty names - fixed.
This commit is contained in:
Damyon Wiese 2013-06-11 15:25:01 +08:00
parent bb6471aa88
commit 52fdb0582a
2 changed files with 2 additions and 2 deletions

View 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'];

View 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'];