Moodle

debugging error message when saving Cloze question

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
  • Fix Version/s: 1.8
  • Component/s: Questions
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

When saving a Cloze question with debug on, the following error is displayed:
Warning: Missing argument 2 for question_edit_multianswer_form::validation, called in C:\moodle\www\moodlel8\moodle\lib\formslib.php on line 303 and defined in C:\moodle\www\moodlel8\moodle\question\type\multianswer\edit_multianswer_form.php on line 192
Notice: Undefined variable: files in C:\moodle\www\moodlel8\moodle\question\type\multianswer\edit_multianswer_form.php on line 193
This problem does not appear in 1.9.
Joseph

Activity

Hide
Pierre Pichet added a comment -

Good detective work.
When I add the question validation from 1.9, i forgot that the valaidation call was not the same in 1.9 ($files where added).
So I will correct it

Show
Pierre Pichet added a comment - Good detective work. When I add the question validation from 1.9, i forgot that the valaidation call was not the same in 1.9 ($files where added). So I will correct it
Hide
Pierre Pichet added a comment -

Change done to 1.8 STABLE

Show
Pierre Pichet added a comment - Change done to 1.8 STABLE

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: