Skip to content
Snippets Groups Projects
Commit 5f65f6bb authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix issue with Closure serialization in FormViewHelper

parent 449388fd
No related branches found
Tags 9.0.5
No related merge requests found
...@@ -286,6 +286,13 @@ class JoblistController extends ActionController { ...@@ -286,6 +286,13 @@ class JoblistController extends ActionController {
$this->view->assign( $this->view->assign(
'maxFileSizeMessage', LocalizationUtility::translate('error.maxFileSizeMessage', 'sg_jobs') 'maxFileSizeMessage', LocalizationUtility::translate('error.maxFileSizeMessage', 'sg_jobs')
); );
// This fixes a bug in the form ViewHelper that wants to serialize a Model with closures in it
$arguments = $this->request->getArguments();
if ($arguments['applyData']) {
$arguments['applyData'] = (string) $arguments['applyData'];
$this->request->setArguments($arguments);
}
} }
/** /**
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</f:if> </f:if>
</div> </div>
<div class="default-content-element"> <div class="default-content-element">
<f:form noCacheHash="1" action="apply" class="sgjobs-apply-form" id="apply" controller="Joblist" method="post" name="applyData" object="{applyData}" enctype="multipart/form-data"> <f:form action="apply" class="sgjobs-apply-form" id="apply" controller="Joblist" method="post" name="applyData" object="{applyData}" enctype="multipart/form-data">
<f:if condition="{job}"> <f:if condition="{job}">
<f:then> <f:then>
<f:form.hidden property="job" value="{job}" /> <f:form.hidden property="job" value="{job}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment