Skip to content
Snippets Groups Projects
Commit ae8655fd authored by srosse's avatar srosse
Browse files

OO-2766: prevent going back the first step

parent cfc3d4b9
No related branches found
No related tags found
No related merge requests found
......@@ -417,6 +417,10 @@ public class StepsMainRunController extends FormBasicController implements Gener
addNextStep((StepFormController) nextChildCreator.createController(null, getWindowControl()), nextStep);
}
} else if (lastEvent == StepsEvent.ACTIVATE_PREVIOUS) {
if(currentStepIndex <= 0) {
return;// the case is possible with FireFox and users who use the keyboard and the enter key.
}
stepPages.pop();
steps.pop();
currentStepIndex--;
......
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