MDL-11282 Just displaying a simple notice, and continuing with the regrading.

This commit is contained in:
nicolasconnault 2007-09-17 17:39:35 +00:00
parent 42b122281b
commit 678e8898aa
2 changed files with 4 additions and 9 deletions

View File

@ -163,7 +163,7 @@ $string['gradeexceptions'] = 'Grade Exceptions';
$string['gradeexceptionshelp'] = 'Grade Exceptions Help';
$string['gradehelp'] = 'Grade Help';
$string['gradeitem'] = 'Grade item';
$string['gradeitemislocked'] = 'This activity is locked in the gradebook. If you regrade it, the grades held internally by this activity will be different from the ones in the gradebook, the latter which will remain unchanged. Are you sure you want to proceed with the regrading?';
$string['gradeitemislocked'] = 'This activity is locked in the gradebook. Changes that are made to grades in this activity will not be copied to the gradebook until it is unlocked.';
$string['gradeitemlocked'] = 'Grading locked';
$string['gradeitemsinc'] = 'Grade items to be included';
$string['gradeitemaddusers'] = 'Exclude from Grading';

View File

@ -128,14 +128,9 @@ function grade_update($source, $courseid, $itemtype, $itemmodule, $iteminstance,
} else {
if ($grade_item->is_locked()) {
$confirm_regrade = optional_param('confirm_regrade', 0, PARAM_INT);
if (!$confirm_regrade) {
$message = get_string('gradeitemislocked', 'grades', $grade_item->itemname);
$back_link = '';
$regrade_link = qualified_me() . '&confirm_regrade=1';
notice_yesno($message, $regrade_link, $back_link);
return GRADE_UPDATE_ITEM_LOCKED;
}
$message = get_string('gradeitemislocked', 'grades', $grade_item->itemname);
notice($message);
return GRADE_UPDATE_ITEM_LOCKED;
}
if ($itemdetails) {