MDL-67514 customfield: correct external usescategories return type.
authorPaul Holden <paulh@moodle.com>
Wed, 17 Jun 2020 19:25:43 +0000 (20:25 +0100)
committerPaul Holden <paulh@moodle.com>
Tue, 17 Nov 2020 22:13:16 +0000 (22:13 +0000)
customfield/externallib.php

index 24da2bb..76a2f34 100644 (file)
@@ -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(