#7 new
David

Want to use Wizard to edit, too, but can't restore

Reported by David | March 4th, 2011 @ 05:41 PM

I am using the Wizard to submit an application for events. But for our use, we need to allow users to go back and edit the events they are done. I've tried using $this->Wizard->restore($dataArray), which properly loads the data from the models into the Wizard session. But then the Wizard never knows which step to go to.

My first thought was the manually set the step to step 1. When I tried this, the first step has all the data pre-loaded just like I want. But when I hit next, it doesn't know how to get to the next step because it sees that there is data in every step so it assumes that the Wizard is done and just infinitely redirects to /register/wizard.

Is there some sample code for properly restoring previously saved data and then editing it accordingly?

Thanks!

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages