diff --git a/src/controllers/FieldsController.php b/src/controllers/FieldsController.php index 20c12c31..30716d20 100644 --- a/src/controllers/FieldsController.php +++ b/src/controllers/FieldsController.php @@ -78,8 +78,8 @@ public function actionGetPredefinedOptions(): Response public function actionGetSummaryHtml(): string { - $fieldId = $this->request->getParam('fieldId'); - $submissionId = $this->request->getParam('submissionId'); + $fieldId = (int)$this->request->getParam('fieldId'); + $submissionId = (int)$this->request->getParam('submissionId'); if ($submissionId && $fieldId) { $submission = Submission::find()->id($submissionId)->isIncomplete(null)->one();