Whenever a multichoice question is followed by a true/false question this error occurs:

"An illegal choice has been detected. Please contact the site administrator."

Comments

djroshi’s picture

Status: Active » Needs review
StatusFileSize
new538 bytes

Not sure why #default_value needs to be set to -1? Commenting out #default_value resolves this issue, not noticing any side-effects...

sivaji_ganesh_jojodae’s picture

Version: 7.x-4.0-alpha9 » 7.x-4.x-dev
Status: Needs review » Fixed

Thanks. Fix committed to git.

acrazyanimal’s picture

Status: Fixed » Needs review

I believe this is probably a better patch for this as the above just comments out the default line and doesn't actually fix it. #1571014: True/False questions: Illegal choice -1 in Choose one element

falcon’s picture

Status: Needs review » Fixed

#1571014 has been commited

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 5aca9e3 on 7.x-4.x, 7.x-5.x by sivaji:
    Issue #1683216: Fix 'An illegal choice has been detected' when...

  • Commit 5aca9e3 on 7.x-4.x, 7.x-5.x, quiz-pages by sivaji:
    Issue #1683216: Fix 'An illegal choice has been detected' when...

  • Commit 5aca9e3 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by sivaji:
    Issue #1683216: Fix 'An illegal choice has been detected' when...

  • Commit 5aca9e3 on 7.x-4.x, 7.x-5.x, 2269219 by sivaji:
    Issue #1683216: Fix 'An illegal choice has been detected' when...