-
Bug
-
Resolution: Fixed
-
Critical
-
3.4
-
MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-60608-master -
The current default for defaulteventcontext is null. This leads to:
defaulteventcontext => Invalid response value detected: Invalid external api response: the value is "", the server was expecting "int" type
|
Error code: invalidresponse
|
* line 424 of /lib/externallib.php: invalid_response_exception thrown
|
* line 233 of /lib/externallib.php: call to external_api::clean_returnvalue()
|
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
|
Apparently null is not a valid int.
Personally I'd say that this is a bug in the WS, and that an optional value should accept null as a default.
This is seen by:
- Login as admin
- Add Calendar block to site home
- Log off
- View current month and log in as GUEST
- Try to navigate month