Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13720

debugging error message when saving Cloze question

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ppichet 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
            ppichet 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
            ppichet Pierre Pichet added a comment -

            Change done to 1.8 STABLE

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

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  31/Mar/07