Skip to content

Commit

Permalink
Fix an error when fetching Summary field HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Aug 28, 2024
1 parent 4548334 commit 4e76dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/FieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4e76dfb

Please sign in to comment.