File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
web-common/src/main/java/pl/edu/icm/unity/webui/forms/reg Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -256,14 +256,14 @@ private ResolvedInvitationParam getInvitationByCode(String registrationCode) thr
256
256
invitation = invitationResolver .getInvitationByCode (registrationCode , form );
257
257
} catch (RegCodeException e )
258
258
{
259
- if (form . isByInvitationOnly () && e .cause .equals (RegCodeException .ErrorCause .MISSING_CODE ))
260
- {
261
- throw new RegCodeException ( ErrorCause . MISSING_CODE );
262
- }
263
-
264
- if ( form . isByInvitationOnly () && e .cause .equals (RegCodeException .ErrorCause .UNRESOLVED_INVITATION ))
259
+ if (e .cause .equals (RegCodeException .ErrorCause .INVITATION_OF_OTHER_FORM ))
260
+ throw e ;
261
+
262
+ if ( form . isByInvitationOnly () && ( e . cause . equals ( RegCodeException . ErrorCause . MISSING_CODE )
263
+ || e . cause . equals ( RegCodeException . ErrorCause . UNRESOLVED_INVITATION )
264
+ || e .cause .equals (RegCodeException .ErrorCause .EXPIRED_INVITATION ) ))
265
265
{
266
- throw new RegCodeException ( ErrorCause . UNRESOLVED_INVITATION ) ;
266
+ throw e ;
267
267
}
268
268
}
269
269
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ private void showFinalScreen(WorkflowFinalizationConfiguration config)
438
438
wrapper .setSpacing (false );
439
439
wrapper .setMargin (false );
440
440
wrapper .setSizeFull ();
441
- setSizeFull ();
441
+ // setSizeFull();
442
442
setCompositionRoot (wrapper );
443
443
444
444
WorkflowCompletedComponent finalScreen = new WorkflowCompletedComponent (config ,
You can’t perform that action at this time.
0 commit comments