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

Undefined property requested exception thrown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:

      Description

      1. Visit a course.
      2. Add the calendar block if it doesn't exist.
      3. Click on the name of the month.
      4. Create a new event with default values.
      5. Notice you get the error 'Coding error detected, it must be fixed by a programmer: Undefined property requested'.

      The reason is the groupid is set to null so if (!isset($this->properties->{$key})) { fails. You can fix this by editing the event mapper to set the groupid to 0 instead of null but that seems like a hack.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              markn Mark Nelson
              Peer reviewer:
              cameron1729
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: