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

calendar_get_upcoming was removed and should not have been

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      None of the plugins in the plugins DB have been updated for 3.3, with the exception of theme_crisp, which has been updated for 3.4 and already uses the new Calendar API.

      Therefore, these testing instructions are developer-focused:

      1. Add some events to your site
      2. open my/index.php in your editor
      3. find the section just after the header, and add:

        require_once($CFG->dirroot . '/calendar/lib.php');
        $calendar = calendar_information::create(time(), SITEID);
        print_object(calendar_get_upcoming($calendar->courses, true, true, 30, 30));
        

      4. view your dashboard
        1. Confirm that you see your events which are in the next 30 days
      Show
      None of the plugins in the plugins DB have been updated for 3.3, with the exception of theme_crisp , which has been updated for 3.4 and already uses the new Calendar API. Therefore, these testing instructions are developer-focused: Add some events to your site open my/index.php in your editor find the section just after the header, and add: require_once($CFG->dirroot . '/calendar/lib.php'); $calendar = calendar_information::create(time(), SITEID); print_object(calendar_get_upcoming($calendar->courses, true, true, 30, 30)); view your dashboard Confirm that you see your events which are in the next 30 days
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-60763-master

      Description

      This was removed in MDL-60092. It should not have been.

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Nicols
            Reporter:
            dobedobedoh Andrew Nicols
            Peer reviewer:
            Eloy Lafuente (stronk7)
            Integrator:
            Damyon Wiese
            Tester:
            Damyon Wiese
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Nov/17