From 4c37e43e6ad6b9e73b5b348fc7ee21433f142873 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 17 Jun 2020 20:25:43 +0100 Subject: [PATCH] MDL-67514 customfield: correct external usescategories return type. --- customfield/externallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customfield/externallib.php b/customfield/externallib.php index 24da2bbe428..76a2f348dfe 100644 --- a/customfield/externallib.php +++ b/customfield/externallib.php @@ -118,7 +118,7 @@ class core_customfield_external extends external_api { 'component' => new external_value(PARAM_COMPONENT, 'component'), 'area' => new external_value(PARAM_ALPHANUMEXT, 'area'), 'itemid' => new external_value(PARAM_INT, 'itemid'), - 'usescategories' => new external_value(PARAM_INT, 'view has categories'), + 'usescategories' => new external_value(PARAM_BOOL, 'view has categories'), 'categories' => new external_multiple_structure( new external_single_structure( array(