mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-35726' of git://github.com/netspotau/moodle-mod_assign
This commit is contained in:
commit
efd6156e4d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user