I created a multi choice question. Then, selected Multiple answers, Random order, and simple scoring and saved the question.

I clicked Edit to see if my settings had been stored. They had not.

Confirmed this by taking the quiz. Only single choice settings were available.

Here's the error message:

Notice: Undefined property: stdClass::$choice_random in MultichoiceQuestion->getNodeView() (line 390 of /home/dwbio/public_html/new/sites/all/modules/quiz/question_types/multichoice/multichoice.classes.inc).

Notice: Undefined property: stdClass::$choice_multi in MultichoiceQuestion->getAnsweringForm() (line 434 of /home/dwbio/public_html/new/sites/all/modules/quiz/question_types/multichoice/multichoice.classes.inc).

Notice: Undefined property: stdClass::$choice_boolean in MultichoiceQuestion->getDefaultAltSettings()

It looks like the three choices are all undefined properties.

Comments

sandra@digitalworldbiology.com’s picture

I found that I can get the option to save these settings to return if I clone the question.

In the cloned node or a completely new node, the options can be saved.

Maybe the problem is occurring because I wrote some of these questions in April?

djdevin’s picture

Status: Active » Closed (duplicate)

This should be fixed once #2600524: Getting Undefined property: stdClass::$revision in MultichoiceQuestion is fixed. The save code was a little buggy.