fixing not opening specimen detail view, #2893
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 30 May 2012 18:18:15 +0000 (18:18 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 30 May 2012 18:18:15 +0000 (18:18 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/IndividualsAssociationDetailElement.java

index 990ca4c5ed65f14cc42ce13119ff587fb04b7480..9fd82032e8a919903e84099ce1fc3658e0e22d71 100644 (file)
@@ -12,6 +12,7 @@ package eu.etaxonomy.taxeditor.ui.section.description.detail;
 
 import java.util.Map;
 
+import eu.etaxonomy.cdm.model.common.CdmBase;
 import eu.etaxonomy.cdm.model.common.Language;
 import eu.etaxonomy.cdm.model.common.LanguageString;
 import eu.etaxonomy.cdm.model.description.IndividualsAssociation;
@@ -68,7 +69,7 @@ public class IndividualsAssociationDetailElement extends
                selection_derivedUnit = formFactory
                                .createSelectionElement(DerivedUnitBase.class,
                                                getConversationHolder(), formElement, "Unit",
-                                               (DerivedUnitBase) entity.getAssociatedSpecimenOrObservation(),
+                                               CdmBase.deproxy(entity.getAssociatedSpecimenOrObservation(),DerivedUnitBase.class),
                                                EntitySelectionElement.ALL, style);
 
                text_description = formFactory.createMultilineTextWithLabel(