From 1e0c4d67fd4dce76739229b440df0218303f7cf3 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Sun, 23 Jul 2006 22:14:31 +0000 Subject: [PATCH] Fix for Bug 6119 - gives error when choice full, and user submits a choice they have already selected --- mod/choice/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 9264e0904904b..a8407a7a92e86 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -292,7 +292,9 @@ function choice_user_submit_response($formanswer, $choice, $userid, $courseid, $ add_to_log($courseid, "choice", "choose", "view.php?id=$cm->id", $choice->id, $cm->id); } } else { - error("this choice is full!"); + if (!($current->optionid==$formanswer)) { //check to see if current choice already selected - if not display error + error("this choice is full!"); + } } }