diff --git a/local/mylearningservice/externallib.php b/local/mylearningservice/externallib.php index 001ff23219c..07a6e6b9521 100644 --- a/local/mylearningservice/externallib.php +++ b/local/mylearningservice/externallib.php @@ -11,9 +11,9 @@ public static function get_recent_courses_parameters() { // Allow omission by setting VALUE_DEFAULT and defaulting to 0 (meaning no limit) 'months' => new external_value(PARAM_INT, 'Number of past months to include', VALUE_DEFAULT, 0), // Optional status filter - 'statusfilter' => new external_value(PARAM_ALPHA, 'Course status filter: completed, inprogress, or empty for all', VALUE_DEFAULT, ''), + 'statusfilter' => new external_value(PARAM_TEXT, 'Course status filter: completed, inprogress, or empty for all', VALUE_DEFAULT, ''), // Optional search term - 'search' => new external_value(PARAM_RAW, 'Search keyword for course fullname/shortname', VALUE_DEFAULT, '') + 'search' => new external_value(PARAM_TEXT, 'Search keyword for course fullname/shortname', VALUE_DEFAULT, '') ) ); } @@ -295,7 +295,7 @@ public static function get_user_certificates_parameters() { return new external_function_parameters( [ 'userid' => new external_value(PARAM_INT, 'User ID'), - 'searchterm' => new external_value(PARAM_RAW, 'Search keyword for filtering certificates', VALUE_OPTIONAL) + 'searchterm' => new external_value(PARAM_TEXT, 'Search keyword for filtering certificates', VALUE_DEFAULT, '') ] ); } diff --git a/local/mylearningservice/version.php b/local/mylearningservice/version.php index c4a8430ce9a..a275d9c99b7 100644 --- a/local/mylearningservice/version.php +++ b/local/mylearningservice/version.php @@ -2,7 +2,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'local_mylearningservice'; -$plugin->version = 2025073103; +$plugin->version = 2025073104; $plugin->requires = 2024100290; $plugin->maturity = MATURITY_STABLE; $plugin->release = '1.0';