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

require_course_login does not set up default page objects if the course is the front page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      While working on MDL-20735 I encountered the issue that when require_course_login is called from a module on the front page the default page objects are not set up.
      This was an issue because the navigation relies on the PAGE objects primarily context, course, and cm to work out what to generate.
      I'm not 100% sure whether this is a bug, or intended functionality but I have attached a bug that addresses the issue.
      If it isn't an bug I'd be keen to know why as I have to find a solution for MDL-20735 and if page objects can be relied on then the fix is easy.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samhemelryk Sam Hemelryk
                Reporter:
                samhemelryk Sam Hemelryk
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10