mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-10364 initial calcualtion edit form
This commit is contained in:
parent
46fa681022
commit
fefe8b06a1
@ -26,7 +26,7 @@ if (!$grade_item = grade_item::fetch(array('id'=>$id, 'courseid'=>$course->id)))
|
||||
// module items and items without grade can not have calculation
|
||||
if ($grade_item->is_normal_item() or ($grade_item->gradetype != GRADE_TYPE_VALUE and $grade_item->gradetype != GRADE_TYPE_SCALE)) {
|
||||
redirect($returnurl, get_string('erornocalculationallowed', 'grades')); //TODO: localize
|
||||
}
|
||||
}
|
||||
|
||||
$mform = new edit_calculation_form();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user