Moodle
  1. Moodle
  2. MDL-35357

Undefined property: stdClass::$answerformat

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3, 2.3.4, 2.4.1
    • Fix Version/s: 2.3.5, 2.4.2
    • Component/s: Lesson
    • Labels:
    • Rank:
      44031

      Description

      Using Moodle 2.3.2 (Build: 20120910)
      Debug mode: set to max (DEVELOPER)
      In a Lesson containing Essay questions. After Lesson has been taken by students.
      When teacher clicks on the Reports/Detailed Statistics tab, error message is thrown:

      Notice: Undefined property: stdClass::$answerformat in moodle\mod\lesson\pagetypes\essay.php on line 226

        Issue Links

          Activity

          Hide
          Michael de Raadt added a comment -

          This is a minor oversight in the code. I've attached a patch.

          I should stop coding now. I'm not getting what I'm supposed to get done.

          Show
          Michael de Raadt added a comment - This is a minor oversight in the code. I've attached a patch. I should stop coding now. I'm not getting what I'm supposed to get done.
          Hide
          Joseph Rézeau added a comment -

          Thanks, Michael, your patch solves the problem.

          Show
          Joseph Rézeau added a comment - Thanks, Michael, your patch solves the problem.
          Hide
          Rossiani Wijaya added a comment -

          Thanks Michael for creating a patch for this.

          Submitting this for integration review.

          Show
          Rossiani Wijaya added a comment - Thanks Michael for creating a patch for this. Submitting this for integration review.
          Hide
          Dan Poltawski added a comment -

          Integrated to master, 24 and 23. Thanks Rosie/Michael

          Show
          Dan Poltawski added a comment - Integrated to master, 24 and 23. Thanks Rosie/Michael
          Hide
          David Monllaó added a comment -

          It passes, tested in 23 and master.

          While testing this I've discovered MDL-37634 which prevents questions to be imported in the lesson module

          Show
          David Monllaó added a comment - It passes, tested in 23 and master. While testing this I've discovered MDL-37634 which prevents questions to be imported in the lesson module
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Surely you will be happy to know that your code is now part of Moodle upstream. Thanks, thanks!

          Closing as fixed, ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Surely you will be happy to know that your code is now part of Moodle upstream. Thanks, thanks! Closing as fixed, ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved: