beastbytes / yii2-wizard

Yii2 Extension to handle multi-part form wizards
Other
37 stars 21 forks source link

array_search() returns false upon an invalid step #9

Open PaulVanSchayck opened 8 years ago

PaulVanSchayck commented 8 years ago

Respond correctly to invalid steps

You can test this by starting a wizard. Then changing the step parameter to something non existing. Without this patch, it will try to load a non existing step in the WizardStep event.