MDL-10364 initial calcualtion edit form

This commit is contained in:
skodak 2007-07-12 20:12:07 +00:00
parent 46fa681022
commit fefe8b06a1

View File

@ -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();