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

Make 'calendar_lookahead' setting more flexible

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-47104_m29v2

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sbourget Stephen Bourget
              Reporter:
              ralfh Ralf Hilgenstock
              Peer reviewer:
              John Okely John Okely
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Ankit Agarwal Ankit Agarwal
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15