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

Fix warning in Calendar month block after MDL-60587

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.5, 3.5.1, 3.6
    • 3.4.6, 3.5.3
    • Blocks
    • Any
    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • mdl63321-master
    • Easy
    • Hide

      Note: Better test on Clean theme since the warning message gets covered by the nav header in Boost.

      1. Add the Calendar block as a site block showing on all pages.
      2. In Site Admin, click Courses then "Manage courses and categories"
      3. Confirm that you don't see a PHP Notice warning.
      Show
      Note: Better test on Clean theme since the warning message gets covered by the nav header in Boost. Add the Calendar block as a site block showing on all pages. In Site Admin, click Courses then "Manage courses and categories" Confirm that you don't see a PHP Notice warning.

    Description

      After MDL-60587 has been integrated, the category contextlevel is determined to true when managing courses but the categoryid isn't set so the warning is thrown.

       

      This item fixes the warning check for category id.

      Attachments

        Issue Links

          Activity

            People

              tlock Tim Lock
              tlock Tim Lock
              Luca Bösch Luca Bösch
              Jun Pataleta Jun Pataleta
              Janelle Barcega Janelle Barcega
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Nov/18

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 14 minutes
                  14m