MDL-70817 core: Allow the manual completion update WS function for AJAX

Allow the core_completion_update_activity_completion_status_manually
web service function to be called from AJAX as well. This is needed
by the new manual completion toggle button in the
core_course/completion_manual template.
This commit is contained in:
Jun Pataleta
2021-04-02 21:56:22 +08:00
parent 430d25d96f
commit 90e30c02cb
+1
View File
@@ -409,6 +409,7 @@ $functions = array(
'description' => 'Update completion status for the current user in an activity, only for activities with manual tracking.',
'type' => 'write',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
'ajax' => true,
),
'core_completion_override_activity_completion_status' => array(
'classname' => 'core_completion_external',