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

Invalid parameter when attempting to view the previous or next day in the calendar

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8
    • 3.8
    • Calendar
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • Hide
      1. Login as admin
      2. Access to the calendar using the link in the Navigation bar
      3. Change the Month dropdown to Day
      4. Confirm you see the current day
      5. Press the link to view the previous day (e.g. today is Tuesday, so press Monday)
      6. Confirm previous day is shown, without triggering exceptions
      7. Keep pressing Previous day until you reach the previous month
      8. Confirm the Monthly view block updates correctly
      9. Press Next day to return to the current month
      10. Confirm the Monthly view block updated correctly

       

      Show
      Login as admin Access to the calendar using the link in the Navigation bar Change the Month dropdown to Day Confirm you see the current day Press the link to view the previous day (e.g. today is Tuesday, so press Monday ) Confirm previous day is shown, without triggering exceptions Keep pressing Previous day until you reach the previous month Confirm the Monthly view block updates correctly Press Next day to return to the current month Confirm the Monthly view block updated correctly  

    Description

      As discovered by benkahn in MDLQA-14094:

      Steps to reproduce:

      1. Log in as a user and go to the calendar
      2. Select 'Day' in the dropdown menu then click the link for the previous day

      Expected result: The previous day is displayed

      Actual result:  Invalid parameter value detected error (twice)

      Note that the invalid parameter error is also sometimes displayed when clicking the link for the next day.

      Invalid parameter value detected
      File: /lib/externallib.php
      Line: 332

      Stack trace:

      Missing required key in single structure: year
      Error code: invalidparameter

      • line 332 of /lib/externallib.php: invalid_parameter_exception thrown
      • line ? of unknownfile: call to external_api::validate_parameters()
      • line 223 of /lib/externallib.php: call to call_user_func()
      • line 79 of /lib/ajax/service.php: call to external_api::call_external_function()
        Missing required key in single structure: year
        Error code: invalidparameter
      • line 332 of /lib/externallib.php: invalid_parameter_exception thrown
      • line ? of unknownfile: call to external_api::validate_parameters()
      • line 223 of /lib/externallib.php: call to call_user_func()
      • line 79 of /lib/ajax/service.php: call to external_api::call_external_function()

      Invalid parameter value detected
      File: /lib/externallib.php
      Line: 332

      Stack trace:

      Missing required key in single structure: year
      Error code: invalidparameter

      • line 332 of /lib/externallib.php: invalid_parameter_exception thrown
      • line ? of unknownfile: call to external_api::validate_parameters()
      • line 223 of /lib/externallib.php: call to call_user_func()
      • line 79 of /lib/ajax/service.php: call to external_api::call_external_function()

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              tsala Helen Foster
              Mihail Geshoski Mihail Geshoski
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Janelle Barcega Janelle Barcega
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/19

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 37 minutes
                  1h 37m