diff --git a/grade/classes/grades/grader/gradingpanel/point/external/store.php b/grade/classes/grades/grader/gradingpanel/point/external/store.php index 09d86c49d79..469a62a4cce 100644 --- a/grade/classes/grades/grader/gradingpanel/point/external/store.php +++ b/grade/classes/grades/grader/gradingpanel/point/external/store.php @@ -117,12 +117,14 @@ class store extends external_api { 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ] = self::validate_parameters(self::execute_parameters(), [ 'component' => $component, 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ]); diff --git a/grade/classes/grades/grader/gradingpanel/scale/external/store.php b/grade/classes/grades/grader/gradingpanel/scale/external/store.php index 88c185d824c..8a3f5edfddf 100644 --- a/grade/classes/grades/grader/gradingpanel/scale/external/store.php +++ b/grade/classes/grades/grader/gradingpanel/scale/external/store.php @@ -77,17 +77,17 @@ class store extends external_api { 'The ID of the user show', VALUE_REQUIRED ), - 'formdata' => new external_value( - PARAM_RAW, - 'The serialised form data representing the grade', - VALUE_REQUIRED - ), 'notifyuser' => new external_value( PARAM_BOOL, 'Wheteher to notify the user or not', VALUE_DEFAULT, false ), + 'formdata' => new external_value( + PARAM_RAW, + 'The serialised form data representing the grade', + VALUE_REQUIRED + ), ]); } @@ -114,12 +114,14 @@ class store extends external_api { 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ] = self::validate_parameters(self::execute_parameters(), [ 'component' => $component, 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ]); diff --git a/grade/grading/form/guide/classes/grades/grader/gradingpanel/external/store.php b/grade/grading/form/guide/classes/grades/grader/gradingpanel/external/store.php index 0e138e2674d..589d9c35109 100644 --- a/grade/grading/form/guide/classes/grades/grader/gradingpanel/external/store.php +++ b/grade/grading/form/guide/classes/grades/grader/gradingpanel/external/store.php @@ -118,12 +118,14 @@ class store extends external_api { 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ] = self::validate_parameters(self::execute_parameters(), [ 'component' => $component, 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ]); diff --git a/grade/grading/form/rubric/classes/grades/grader/gradingpanel/external/store.php b/grade/grading/form/rubric/classes/grades/grader/gradingpanel/external/store.php index 8bbcb0b33b2..6174ce29bc2 100644 --- a/grade/grading/form/rubric/classes/grades/grader/gradingpanel/external/store.php +++ b/grade/grading/form/rubric/classes/grades/grader/gradingpanel/external/store.php @@ -76,17 +76,17 @@ class store extends external_api { 'The ID of the user show', VALUE_REQUIRED ), - 'formdata' => new external_value( - PARAM_RAW, - 'The serialised form data representing the grade', - VALUE_REQUIRED - ), 'notifyuser' => new external_value( PARAM_BOOL, 'Wheteher to notify the user or not', VALUE_DEFAULT, false ), + 'formdata' => new external_value( + PARAM_RAW, + 'The serialised form data representing the grade', + VALUE_REQUIRED + ), ]); } @@ -113,12 +113,14 @@ class store extends external_api { 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ] = self::validate_parameters(self::execute_parameters(), [ 'component' => $component, 'contextid' => $contextid, 'itemname' => $itemname, 'gradeduserid' => $gradeduserid, + 'notifyuser' => $notifyuser, 'formdata' => $formdata, ]);