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

Make 'calendar_lookahead' setting more flexible

XMLWordPrintable

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • MDL-47104_m29v2
    • Easy
    • Hide

      Testing difficulty: Easy

      This requires an empty course and site admin access.

      1. Enter a course and add the "Upcoming events" block
      2. Click on "new event" and add the following events:
      A site wide event roughly 6 months (180 days) from today called "6 mo test"
      A site wide event roughly 2 months (60 days) from today called "2 mo test"
      A site wide event 3 weeks (21 days) from today called "3 wk test"

      3. Verify that the event "3 wk test" is displayed but not the other two
      4. Navigate to Site Administration->Appearance->calendar and change the setting "calendar_lookahead" from 21 to 90.
      5. Return to the course and verify that the event "2 mo test" appears
      6. Navigate to Site Administration->Appearance->calendar and change the setting "calendar_lookahead" from 21 to 210.
      7. Return to the course and verify that the event "6 mo test" now appears in addition to the other two

      Show
      Testing difficulty: Easy This requires an empty course and site admin access. 1. Enter a course and add the "Upcoming events" block 2. Click on "new event" and add the following events: A site wide event roughly 6 months (180 days) from today called "6 mo test" A site wide event roughly 2 months (60 days) from today called "2 mo test" A site wide event 3 weeks (21 days) from today called "3 wk test" 3. Verify that the event "3 wk test" is displayed but not the other two 4. Navigate to Site Administration->Appearance->calendar and change the setting "calendar_lookahead" from 21 to 90. 5. Return to the course and verify that the event "2 mo test" appears 6. Navigate to Site Administration->Appearance->calendar and change the setting "calendar_lookahead" from 21 to 210. 7. Return to the course and verify that the event "6 mo test" now appears in addition to the other two

      Hello

      the calendar_lookahead setting is limited to 99 days

      In adult educational programms often the entries are a long time in future. I.e. Students have events all two months. For this scenarios it makes sense to expand the number of days for calendar_lookahead setting. I think a maximum of 365 days makes sense.

      I've not checked the code but a member of German community reported that he found an entry inthe config database table. I think that the limitation is hard coded.
      Ralf

            sbourget Stephen Bourget
            ralfh Ralf Hilgenstock
            John Okely John Okely
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.