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

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

    Details

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

      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.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            stronk7 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
            stronk7 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
            timhunt Tim Hunt added a comment -

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

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

            Works as described. Passing.

            Show
            andyjdavis Andrew Davis added a comment - Works as described. Passing.
            Hide
            damyon 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 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
            andy@fun 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
            andy@fun 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
            andy@fun Andrew Johnson added a comment -

            It works! Cheers!

            Show
            andy@fun 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:
                  Fix Release Date:
                  13/May/13