NOBUG: Fix glossary rating in 18_STABLE. Regression introduced (some months ago!)
while securing ratings (blind merged). http://moodle.org/mod/forum/discuss.php?d=138319
This commit is contained in:
@@ -24,9 +24,6 @@
|
||||
$glossary = false;
|
||||
if ($data = data_submitted("$CFG->wwwroot/mod/glossary/view.php")) { // form submitted
|
||||
|
||||
/// Calculate scale values
|
||||
$scale_values = make_grades_menu($glossary->scale);
|
||||
|
||||
foreach ((array)$data as $entryid => $rating) {
|
||||
if (!is_numeric($entryid)) {
|
||||
continue;
|
||||
@@ -57,6 +54,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
/// Calculate scale values
|
||||
$scale_values = make_grades_menu($glossary->scale);
|
||||
|
||||
|
||||
if ($entry->glossaryid != $glossary->id) {
|
||||
error('This is not valid entry!!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user