Moodle
  1. Moodle
  2. MDL-38397

Error message when saving embedded answers (cloze) type quiz question

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.6, 2.4.1, 2.5
    • Fix Version/s: 2.3.7, 2.4.4
    • Component/s: Questions
    • Labels:
      None
    • Rank:
      48321

      Description

      We've got the latest update of Moodle (Moodle 2.4.1+ (Build: 20130308)) and we are now experiencing trouble saving cloze type quiz questions. I had no trouble a few weeks ago with Moodle 2.4.1 (I'm not sure which build).

      To get the error:
      1a. create a new quiz question of "Embedded Answers (Cloze)" type.
      1b. click edit to an existing "Embedded Answers (Cloze)" question
      2. Make/edit the question
      3. Click "save changes"
      4. Get error screen that says: "Notice: Undefined index: defaultmark in /Library/WebServer/Documents/moodle/question/type/edit_question_form.php on line 659
      Skip to main content
      "

      I'm not having trouble with other question types such as multiple choice (I haven't tried them all).

      Apologies if this has been reported already. I searched the tracker and didn't see anything like this.

        Issue Links

          Activity

          Hide
          Eloy Lafuente (stronk7) added a comment -

          Integrated (23, 24 and master), thanks!

          PS: Not sure why you didn't use isset() instead, don't seem nulls are a problem there... but... ignoring.

          Show
          Eloy Lafuente (stronk7) added a comment - Integrated (23, 24 and master), thanks! PS: Not sure why you didn't use isset() instead, don't seem nulls are a problem there... but... ignoring.
          Hide
          Tim Hunt added a comment -

          Because I wanted to know if an array key exists in the array.

          Show
          Tim Hunt added a comment - Because I wanted to know if an array key exists in the array.
          Hide
          Andrew Davis added a comment -

          Works as described. Passing.

          Show
          Andrew Davis added a comment - Works as described. Passing.
          Hide
          Damyon Wiese added a comment -

          This issue has been integrated upstream and is now available via git (and in some hours, via mirrors and downloads).

          Thanks for your contributions!

          Show
          Damyon Wiese added a comment - This issue has been integrated upstream and is now available via git (and in some hours, via mirrors and downloads). Thanks for your contributions!
          Hide
          Andrew Johnson added a comment -

          Cheers! I look forward to testing it the new time we upgrade. As always, thank you all for all the great work you do!

          Show
          Andrew Johnson added a comment - Cheers! I look forward to testing it the new time we upgrade. As always, thank you all for all the great work you do!
          Hide
          Andrew Johnson added a comment -

          It works! Cheers!

          Show
          Andrew Johnson added a comment - It works! Cheers!

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: