Skip to content

Commit

Permalink
fixing old pages tests - do not redirect to template page. this funct…
Browse files Browse the repository at this point in the history
…ionality will be available only for new pages.
  • Loading branch information
katkav committed Sep 29, 2021
1 parent 62b0f63 commit 4f953ed
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ public abstract class PageAdminObjectDetails<O extends ObjectType> extends PageA
protected boolean previewRequested;

public PageAdminObjectDetails() {
if (getObjectOidParameter() == null) {
ObjectTypes objectType = ObjectTypes.getObjectTypeIfKnown(getCompileTimeClass());
Collection<CompiledObjectCollectionView> applicableArchetypes = getCompiledGuiProfile().findAllApplicableArchetypeViews(objectType.getTypeQName(), OperationTypeType.ADD);
if (!applicableArchetypes.isEmpty()) {
PageParameters params = new PageParameters();
params.add("type", objectType.getRestType());
throw new RestartResponseException(PageCreateFromTemplate.class, params);
}
}
}

public PageAdminObjectDetails(final PrismObject<O> unitToEdit, boolean isNewObject) {
Expand Down

0 comments on commit 4f953ed

Please sign in to comment.