Fixes bug 5464 also makes response clearer to students -see:

http://moodle.org/mod/forum/discuss.php?d=45504

also finishes off Bug 662
This commit is contained in:
danmarsden
2006-05-15 23:24:42 +00:00
parent 0c49258b99
commit 019c47d6c1

View File

@@ -68,7 +68,7 @@
}
//if user has already made a selection, and they are not allowed to update it, show their selected answer.
if (isset($USER->id) && ($current = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $USER->id)) && !$choice->allowupdate) {
if (isset($USER->id) && ($current = get_record('choice_answers', 'choiceid', $choice->id, 'userid', $USER->id))) {
print_simple_box(get_string("yourselection", "choice", userdate($choice->timeopen)).": ".format_string(choice_get_option_text($choice, $current->optionid)), "center");
}