I get the following error when adding existing questions to a node on the quiz "manage questions" form.

Fatal error: Cannot use object of type stdClass as array in quiz/quiz.module on line 1729

Attached patch fixes this issue.

Comments

stella’s picture

StatusFileSize
new1.86 KB

Rerolled patch to take account of another bug found in the same function, reported in ticket #1364780: Quiz loses question relationship on save

sivaji_ganesh_jojodae’s picture

Status: Needs review » Fixed

Thank you. Committed to git.

Status: Fixed » Closed (fixed)

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

drewbe121212’s picture

This is still not quite write. Updated the following:

- execute() function bombs out, proper values to array mapping are incorrect (switched to obj resultset instead)
- use the newly created vid, not the old quiz vid

drewbe121212’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new1.62 KB

Cleaned up the PHP coding style in the patch.

falcon’s picture

Status: Needs review » Closed (fixed)

I believe this was fixed some time ago, just not released yet.

  • Commit bccd441 on 7.x-4.x, 7.x-5.x by sivaji:
    Fix #1301584 Saving questions to a quiz gives a fatal error.
    
    

  • Commit bccd441 on 7.x-4.x, 7.x-5.x, quiz-pages by sivaji:
    Fix #1301584 Saving questions to a quiz gives a fatal error.
    
    

  • Commit bccd441 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by sivaji:
    Fix #1301584 Saving questions to a quiz gives a fatal error.
    
    

  • Commit bccd441 on 7.x-4.x, 7.x-5.x, 2269219 by sivaji:
    Fix #1301584 Saving questions to a quiz gives a fatal error.