Skip to content

Commit

Permalink
fix for MID-5583
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jul 30, 2019
1 parent d64eb21 commit 32fda60
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -91,6 +91,7 @@
import com.evolveum.midpoint.web.component.util.SelectableBean;
import com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour;
import com.evolveum.midpoint.web.page.PageDialog;
import com.evolveum.midpoint.web.page.admin.archetype.PageArchetype;
import com.evolveum.midpoint.web.page.admin.cases.PageCase;
import com.evolveum.midpoint.web.page.admin.reports.PageReport;
import com.evolveum.midpoint.web.page.admin.reports.PageReports;
Expand Down Expand Up @@ -213,6 +214,7 @@ public final class WebComponentUtil {
objectDetailsPageMap.put(ReportType.class, PageReport.class);
objectDetailsPageMap.put(ValuePolicyType.class, PageValuePolicy.class);
objectDetailsPageMap.put(CaseType.class, PageCase.class);
objectDetailsPageMap.put(ArchetypeType.class, PageArchetype.class);
}

static{
Expand Down Expand Up @@ -1944,6 +1946,11 @@ public static <AHT extends AssignmentHolderType> void initNewObjectWithReference
if (ref.getType() != null && OrgType.COMPLEX_TYPE.equals(ref.getType())) {
assignmentHolder.getParentOrgRef().add(ref.clone());
}

// The same problem as above TODO MID-3234
if (ref.getType() != null && ArchetypeType.COMPLEX_TYPE.equals(ref.getType())) {
assignmentHolder.getArchetypeRef().add(ref.clone());
}
});
}

Expand Down

0 comments on commit 32fda60

Please sign in to comment.