MDL-10364 initial calcualtion edit form
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user