Skip to content

Commit 34e360e

Browse files
committed
UY-1185 fixes
1 parent fdf7746 commit 34e360e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

web-common/src/main/java/pl/edu/icm/unity/webui/forms/reg/RequestEditorCreator.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ private ResolvedInvitationParam getInvitationByCode(String registrationCode) thr
256256
invitation = invitationResolver.getInvitationByCode(registrationCode, form);
257257
} catch (RegCodeException e)
258258
{
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)))
265265
{
266-
throw new RegCodeException(ErrorCause.UNRESOLVED_INVITATION);
266+
throw e;
267267
}
268268
}
269269

web-common/src/main/java/pl/edu/icm/unity/webui/forms/reg/StandaloneRegistrationView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ private void showFinalScreen(WorkflowFinalizationConfiguration config)
438438
wrapper.setSpacing(false);
439439
wrapper.setMargin(false);
440440
wrapper.setSizeFull();
441-
setSizeFull();
441+
//setSizeFull();
442442
setCompositionRoot(wrapper);
443443

444444
WorkflowCompletedComponent finalScreen = new WorkflowCompletedComponent(config,

0 commit comments

Comments
 (0)