Skip to content

Commit

Permalink
MDL-66360 grading: Validate notifyuser
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Nov 12, 2019
1 parent 656f2e5 commit 0e32b5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@ public static function execute(string $component, int $contextid, string $itemna
'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,
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ public static function execute(string $component, int $contextid, string $itemna
'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,
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,14 @@ public static function execute(string $component, int $contextid, string $itemna
'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,
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ public static function execute(string $component, int $contextid, string $itemna
'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,
]);

Expand Down

0 comments on commit 0e32b5a

Please sign in to comment.