Fixing a problem where the type was not displayed correctly when switching between...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / taxon / TaxonRelationshipDetailElement.java
index ec55e4863ca32e63ef27f8dab5d7302b19c705bd..85ddb57603a12c79735b4e1f3b181ce6fc438ab1 100644 (file)
@@ -34,8 +34,6 @@ public class TaxonRelationshipDetailElement extends AbstractCdmDetailElement<Tax
        private TaxonRelationshipTypeComboElement combo_taxonRelationshipType;
        
        private TaxonSelectionElement selection_relatedTaxon;
-
-       private TaxonRelationshipTypeInverseContainer container;
        
        public TaxonRelationshipDetailElement(CdmFormFactory formFactory,
                        ICdmFormElement formElement) {
@@ -61,10 +59,7 @@ public class TaxonRelationshipDetailElement extends AbstractCdmDetailElement<Tax
        }
 
        private TaxonRelationshipTypeInverseContainer getTaxonRelationshipTypeInverseContainer(){
-               if (container == null){
-                       container = TaxonRelationshipTypeInverseContainer.CreateFromSource(getSourceTaxon(), getEntity());
-               }
-               return container;
+               return TaxonRelationshipTypeInverseContainer.CreateFromSource(getSourceTaxon(), getEntity());
        }
        
        private Taxon getSourceTaxon(){