Merge branch 'MDL-35726' of git://github.com/netspotau/moodle-mod_assign

This commit is contained in:
Sam Hemelryk 2012-10-16 10:16:26 +08:00
commit efd6156e4d

View File

@ -59,6 +59,17 @@ class mod_assign_grade_form extends moodleform {
}
}
/**
* This is required so when using "Save and next", each form is not defaulted to the previous form.
* Giving each form a unique identitifer is enough to prevent this (include the rownum in the form name).
*
* @return string - The unique identifier for this form.
*/
protected function get_form_identifier() {
$params = $this->_customdata[2];
return get_class($this) . '_' . $params['rownum'];
}
/**
* Perform minimal validation on the grade form
* @param array $data