Skip to content

Commit

Permalink
Merge pull request #59 from bwaidelich/serializable-formstate
Browse files Browse the repository at this point in the history
BUGFIX: Don't proxy FormState
  • Loading branch information
Bastian Waidelich committed Aug 25, 2017
2 parents a1eca65 + a45bdca commit 2112685
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Core/Runtime/FormRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public function getFormState()
*/
public function getSerializedFormState()
{
$serializedFormState = base64_encode(serialize($this->getFormState()));
$serializedFormState = base64_encode(serialize(clone $this->getFormState()));
return $this->hashService->appendHmac($serializedFormState);
}

Expand Down
2 changes: 0 additions & 2 deletions Classes/Core/Runtime/FormState.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
* source code.
*/

use Neos\Flow\Annotations as Flow;

/**
* The current state of the form which is attached to the {@link FormRuntime}
* and saved in a session or the client.
Expand Down

0 comments on commit 2112685

Please sign in to comment.