-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.2, 3.10
-
MOODLE_310_STABLE, MOODLE_37_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
When a custom fields handler returns false for \core_customfield\handler::uses_categories
trying to delete a custom field using the \core_customfield\output\management interface causes the following error.
usescategories => Invalid response value detected (Invalid external api response: the value is "" of PHP type "boolean", the server was expecting "int" type): Invalid external api response: the value is "" of PHP type "boolean", the server was expecting "int" type |
Error code: invalidresponse
|
* line 442 of /lib/externallib.php: invalid_response_exception thrown |
* line 250 of /lib/externallib.php: call to external_api::clean_returnvalue() |
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function() |
It appears the \core_customfield_external::reload_template_returns it looking for a PARAM_INT but \core_customfield\handler::uses_categories returns PARAM_BOOL