@@ -105,7 +105,6 @@ public class FormXPage extends MVCApplication
105
105
protected static final String MESSAGE_PATH = "forms.xpage.form.view.pagePathLabel" ;
106
106
protected static final String MESSAGE_ERROR_NOT_RESPONSE_AGAIN_FORM = "forms.xpage.form.error.limitNumberResponse" ;
107
107
protected static final String MESSAGE_ERROR_CONTROL = "forms.xpage.form.error.control" ;
108
- protected static final String MESSAGE_ERROR_STEPS_VALIDATION = "forms.xpage.form.error.steps.validation" ;
109
108
protected static final String MESSAGE_LIST_FORMS_PAGETITLE = "forms.xpage.listForms.pagetitle" ;
110
109
protected static final String MESSAGE_LIST_FORMS_PATHLABEL = "forms.xpage.listForms.pathlabel" ;
111
110
private static final String MESSAGE_WARNING_LOST_SESSION = "forms.warning.lost.session" ;
@@ -609,18 +608,6 @@ public synchronized XPage doFormResponseSummary( HttpServletRequest request ) th
609
608
return getStepView ( request );
610
609
}
611
610
FormsResponseUtils .fillResponseManagerWithResponses ( request , true , _formResponseManager , _stepDisplayTree .getQuestions ( ), false );
612
- List <Step > stepList = StepHome .getStepsListByForm ( form .getId ( ) );
613
- Set <Integer > validatedStepIds = _formResponseManager .getValidatedSteps ( ).stream ( ).map ( Step ::getId ).collect ( Collectors .toSet ( ) );
614
-
615
- List <Step > invalidSteps = stepList .stream ( ).filter ( step -> !validatedStepIds .contains ( step .getId ( ) ) ).collect ( Collectors .toList ( ) );
616
-
617
- if ( !invalidSteps .isEmpty ( ) )
618
- {
619
- SiteMessageService .setMessage ( request , MESSAGE_ERROR_STEPS_VALIDATION , new Object [ ] {
620
- invalidSteps .stream ( ).map (Step ::getTitle ).collect ( Collectors .joining (", " ) )
621
- }, null , null , null , SiteMessage .TYPE_ERROR , null , getViewFullUrl ( VIEW_STEP ) );
622
- return getStepView ( request );
623
- }
624
611
boolean needValidation = form .isCaptchaStepFinal ( );
625
612
if ( isCaptchaKO ( request , needValidation ) )
626
613
{
@@ -726,20 +713,6 @@ public synchronized XPage doSaveFormResponse( HttpServletRequest request ) throw
726
713
return getStepView ( request );
727
714
}
728
715
FormsResponseUtils .fillResponseManagerWithResponses ( request , true , _formResponseManager , _stepDisplayTree .getQuestions ( ), false );
729
-
730
- List <Step > stepList = StepHome .getStepsListByForm ( form .getId ( ) );
731
- Set <Integer > validatedStepIds = _formResponseManager .getValidatedSteps ( ).stream ( ).map ( Step ::getId ).collect ( Collectors .toSet ( ) );
732
-
733
- List <Step > invalidSteps = stepList .stream ( ).filter ( step -> !validatedStepIds .contains ( step .getId ( ) ) ).collect ( Collectors .toList ( ) );
734
-
735
- if ( !invalidSteps .isEmpty ( ) )
736
- {
737
- SiteMessageService .setMessage ( request , MESSAGE_ERROR_STEPS_VALIDATION , new Object [ ] {
738
- invalidSteps .stream ( ).map (Step ::getTitle ).collect ( Collectors .joining (", " ) )
739
- }, null , null , null , SiteMessage .TYPE_ERROR , null , getViewFullUrl ( VIEW_STEP ) );
740
- return getStepView ( request );
741
- }
742
-
743
716
boolean needValidation = form .isCaptchaStepFinal ( );
744
717
if ( isCaptchaKO ( request , needValidation ) )
745
718
{
0 commit comments