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

Notice when in site home/course page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.11
    • Fix Version/s: 3.11
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course.
      2. Add new Page resource to Section 1 and set the completion tracking to Manual.
      3. Add a new section called Section 2 to the course.
      4. Set the Access restrictions to Student must match the Activity completion (created Page resource) must be marked complete.
      5. Go to admin page -> Purge the cache.
      6. Go to the created course.
      7. Verify that there is no error as below will be shown:

      Notice: Undefined property: section_info::$available in
      

      Show
      Create a course. Add new Page resource to Section 1 and set the completion tracking to Manual. Add a new section called Section 2 to the course. Set the Access restrictions to Student must match the Activity completion (created Page resource) must be marked complete. Go to admin page -> Purge the cache. Go to the created course. Verify that there is no error as below will be shown: Notice: Undefined property: section_info::$available in
    • Affected Branches:
      MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-71486-311
    • Pull Master Branch:
      MDL-71486-master

      Description

      A notice is being displayed after logging in/purging caches in site home or in a course homepage.

      Notice: Undefined property: section_info::$available in /Users/vmdef/Sites/moodles/integration_master/moodle/lib/modinfolib.php on line 1931
      

      I noticed this while reviewing MDL-71410 but couldn't replicate it in other instances so I initially thought it's something in my instance. But Víctor Déniz Falcón also reported seeing this so it must be legit and need to be investigated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              huongn@moodle.com Huong Nguyen
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Shamim Rezaie Shamim Rezaie
              Integrator:
              Jun Pataleta Jun Pataleta
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h