Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5935

"courseidwrong" in certain circunstances

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.8
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      "Course id not found" warning when editing section properties in some courses.

      Line 42, file "block_autoattend.php":
      Variable $courseid receives the return value of "optional_param('id', 0, PARAM_INTEGER);", but sometimes this "id" is the reference to a non course object.

      Searching in the code of others blocks the following sentence is used:
      $courseid = $this->page->course->id;

      Regards

        Attachments

          Activity

            People

            Assignee:
            iseki Fumikazu Iseki
            Reporter:
            emilio.ah Emilio Arjona Heredia
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: