Skip to content

Commit

Permalink
Fix wrong param declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvu committed Oct 2, 2023
1 parent 04023c2 commit 5cc1bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static function submit_questionnaire_response($questionnaireid, $surveyid
public static function submit_questionnaire_response_returns() {
return new external_single_structure(
[
'submitted' => new external_value(PARAM_BOOL, 'submitted', VALUE_REQUIRED, false, false),
'submitted' => new \external_value(PARAM_BOOL, 'submitted', VALUE_DEFAULT, false, NULL_NOT_ALLOWED),
'warnings' => new external_warnings()
]
);
Expand Down

0 comments on commit 5cc1bca

Please sign in to comment.