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:
Eloy Lafuente
2009-11-21 15:46:28 +00:00
parent d7befb3835
commit 0502aaf736
+4 -3
View File
@@ -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!!');
}