From: Patrick Plitzner Date: Wed, 3 Aug 2016 13:31:48 +0000 (+0200) Subject: fix #5853 Support relationships in referencing objects view X-Git-Tag: 4.3.0^2~94 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/ae2183bb376648eb7d1f4fd956abd2c9ac8143d9 fix #5853 Support relationships in referencing objects view --- diff --git a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java index c8a273fa6..75bf240ef 100644 --- a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java +++ b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java @@ -255,6 +255,9 @@ public class ReferencingObjectsView extends AbstractCdmViewPart { referencedObject = CdmStore.getService(IUserService.class).load(entity, null); } else if (Group.class.isAssignableFrom(objectClass)){ referencedObject = CdmStore.getService(IGroupService.class).load(entity, null); + } + else if(CdmBase.class.isAssignableFrom(objectClass)){ + referencedObject = CdmStore.getCommonService().find(objectClass, entity); } //referencedObject =(CdmBase) CdmStore.getService(IIdentifiableEntityService.class).load(referencedObject.getUuid()); Set setOfReferencingObjects = null;