mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-66360 grading: Validate notifyuser
This commit is contained in:
parent
656f2e5a38
commit
0e32b5ae41
4 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue