I noticed that sometimes when editing an existing quiz, no questions would appear in the "Manage Questions" tab, even though questions were added to the quiz previously, and questions are displayed when viewing the quiz.

For me, the issue was that I had selected "random questions" on the quiz edit edit tab. In the quiz_get_questions function, the question_status value is provided the incorrect question status. It should be QUESTION_RANDOM instead of QUESTION_NEVER.

Patch is attached.

CommentFileSizeAuthor
quiz_manage_questions.patch575 bytesJuliaKoelsch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sivaji_Ganesh_Jojodae’s picture

@Spry_Julia, thanks I will check and commit the patch tomorrow. Perhaps #1369386: questions do not appear in quiz take ("no questions found. please assign questions..") is same as this issue.

Sivaji_Ganesh_Jojodae’s picture

Status: Needs review » Fixed

Thanks. Patch committed to git 565622e..a49a0e8.

Status: Fixed » Closed (fixed)

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

funkeyrandy’s picture

Version: 7.x-4.x-dev » 7.x-4.0-alpha4

i still see this issue on latest release 7.x-4.0-alpha4
im not using random anything, just a simple 2 question multiple choice quiz...when i retake the quiz a second time, the questions are gone

Lloyd’s picture

Version: 7.x-4.0-alpha4 » 7.x-4.0-alpha9
Status: Closed (fixed) » Active

This is still present on the most recent version (7.x-4.0-alpha9). I've created 3 questions - 2 multiple choice and 1 direction. Once added to the quiz, the multiple choice questions no longer appear under Questions in this Quiz, and are not available to add either. The directions question displays properly. However, I can take the quiz and each of the questions (including the multiple choice) are present. So it just appears to be something quite buggy with managing the quiz page.

h.arefmanesh’s picture

hello,
this patch does not work for me and still full of error when I click start quiz.

falcon’s picture

Priority: Normal » Major

Sounds strange. Haven't experienced this, but we need to look into it.

bburg’s picture

Issue summary: View changes

I was brought to this issue after seeing https://drupal.org/node/1369386 marked as a duplicate of this one. After creating a quiz and adding questions, I get the message "no questions found. please assign questions..", which seems to be because the question_status value in the quiz_node_relationship table always seems to be set to 0 and I don't see any place to change status other than the standard node publish option. I removed that component of the query, but then I get a redirect loop.

Drupal 7.24
Quiz 7.x-4.0-beta2

  • Commit a49a0e8 on 7.x-4.x, 7.x-5.x authored by Spry_Julia, committed by sivaji:
    Fix #1446002 - Questions disappear from Manage Questions tab.
    
    

  • Commit a49a0e8 on 7.x-4.x, 7.x-5.x, quiz-pages authored by Spry_Julia, committed by sivaji:
    Fix #1446002 - Questions disappear from Manage Questions tab.
    
    
ezraw’s picture

johnbburg, have you tried this in 7.x-5.x-dev?

  • Commit a49a0e8 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 authored by Spry_Julia, committed by sivaji:
    Fix #1446002 - Questions disappear from Manage Questions tab.
    
    
zeezhao’s picture

Still seeing this error for existing quiz after upgrading from an old 4.x to latest 5.x

edit:
Found it... via .../node/node_ID/quiz/questions

  • Commit a49a0e8 on 7.x-4.x, 7.x-5.x, 2269219 authored by Spry_Julia, committed by sivaji:
    Fix #1446002 - Questions disappear from Manage Questions tab.
    
    

  • sivaji committed a49a0e8 on 7.x-6.x authored by Spry_Julia
    Fix #1446002 - Questions disappear from Manage Questions tab.
    
    
djdevin’s picture

Status: Active » Closed (outdated)