Hi,
I receive a notice every time I try to create Multiple choice question. It is:
Notice: Undefined index: revision in quiz_question_node_form_submit() (line 142 of sites/all/modules/contrib/quiz/question_types/quiz_question/quiz_question.module).
It is this line of code:
if ($form_state['values']['revision']) {
As far as I understood there is some issues with quiz and revisions so I decided to go with the quick and obvious fix to put the $form_state['values']['revision'] into isset().
Patch in the comment below.
Regards,
Lachezar
Comments
Comment #1
lachezar.valchev commentedHi,
Patch is attached.
Regards,
Lachezar
Comment #2
djdevinThanks!
I changed isset() to !empty() because value of "revision" could possibly be set to 0.