Skip to content

Commit

Permalink
Fix for Bug 6119 - gives error when choice full, and user submits a c…
Browse files Browse the repository at this point in the history
…hoice they have already selected
  • Loading branch information
danmarsden committed Jul 23, 2006
1 parent 5ac207d commit 1e0c4d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/choice/lib.php
Expand Up @@ -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!");
}
}
}

Expand Down

0 comments on commit 1e0c4d6

Please sign in to comment.