]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes bug 5464 also makes response clearer to students -see:
authordanmarsden <danmarsden>
Mon, 15 May 2006 23:24:42 +0000 (23:24 +0000)
committerdanmarsden <danmarsden>
Mon, 15 May 2006 23:24:42 +0000 (23:24 +0000)
http://moodle.org/mod/forum/discuss.php?d=45504

also finishes off Bug 662

mod/choice/view.php

index b9f06cf79152392328cc0014a3f0fa7fbdd255e7..7e5b6bc8e74b59b33b0ae8db98763fd36030d06b 100644 (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");
     }