Skip to content

Commit

Permalink
fixed survey editing
Browse files Browse the repository at this point in the history
  • Loading branch information
SDClowen committed May 16, 2024
1 parent b86898e commit cea6c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/surveys.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function edit(int $surveyId)
"user" => User::info(),
"surveyFormTitle" => $surveyFormTitle,
"url" => $isOnEditMode ? "apply/$surveyId" : "apply",
"showIfOnEditMode" => $isOnEditMode ? "<script>$(()=>{window.prepareSurveyForEditing('$result', '$data')})</script>" : ""
"showIfOnEditMode" => $isOnEditMode ? "<script>$(()=>{window.prepareSurveyForEditing(`$result`, `$data`)})</script>" : ""
]);
}

Expand Down

0 comments on commit cea6c9c

Please sign in to comment.