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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.8
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      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  
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:

      Description

      As discovered by Benjamin Kahn 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

              Assignee:
              pholden Paul Holden
              Reporter:
              tsala Helen Foster
              Peer reviewer:
              Mihail Geshoski
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                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