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

Fix warning in Calendar month block after MDL-60587

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.5, 3.5.1, 3.6
    • Fix Version/s: 3.4.6, 3.5.3
    • Component/s: Blocks
    • Database:
      Any
    • Testing Instructions:
      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.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
      mdl63321-moodle35
    • Pull Master Branch:
      mdl63321-master

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Nov/18

                  Time Tracking

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