Christian Raue

Results 111 comments of Christian Raue

Then there would be no way to get rid of the uploaded file.

For me, going back within the flow means you want to change something. So if there's no upload provided, then there should be none. But you could try https://github.com/craue/CraueFormFlowBundle/issues/83#issuecomment-111213429.

I wonder _why_ there's no stored data available to the flow, which in turn causes the flow to expire. Could you elaborate on this?

I mean [`!$this->dataManager->exists($this)`](https://github.com/craue/CraueFormFlowBundle/blob/03b0604cfc7de8d890add83b3afd1b45bde1e533/Form/FormFlow.php#L642). How are you able to work with the flow when there's no data stored? It seems odd to add code for a workaround instead of having a...

Would it work to create the flow with a GET request? Sending a POST before the flow's storage [has been initialized](https://github.com/craue/CraueFormFlowBundle/blob/03b0604cfc7de8d890add83b3afd1b45bde1e533/Form/FormFlow.php#L605) seems to be the issue here.

@Nairebis, do you have an opinion on this?

@robhunt3r, I thought about using GET only for the first request to properly start the flow. You don't need to send the `category` parameter on subsequent POST requests if it...

With these changes, the `create` flow works for me: ``` patch diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php index 4264e8a..8d33a3e 100644 --- a/src/AppBundle/Controller/DefaultController.php +++ b/src/AppBundle/Controller/DefaultController.php @@ -76,7 +76,7 @@ $flow->saveCurrentStepData($form); if($flow->nextStep()) { -...

The issue is that this custom form was sent without these fields identifying the current flow instance. Even better if this also fixes your real project. :smirk: There's still something...