- quick-fix for DerivateView: always create a FieldUnit when creating a DerivedUnitF...
authorPatric Plitzner <p.plitzner@bgbm.org>
Mon, 25 Nov 2013 07:44:26 +0000 (07:44 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Mon, 25 Nov 2013 07:44:26 +0000 (07:44 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewDerivedUnitBaseWizard.java

index 0b4c9bf950612fc6756a278146d3c76198dcbf47..ea1bf4124dcf3b48f03e15575d63c174be475417 100644 (file)
@@ -48,6 +48,8 @@ public class NewDerivedUnitBaseWizard extends AbstractNewEntityWizard<DerivedUni
            try {
                if(getEntity() != null) {
                    facade = DerivedUnitFacade.NewInstance(getEntity(), PreferencesUtil.getDerivedUnitConfigurator());
+                   facade.getFieldUnit(true); //TODO: this is a temporary solution for the Campanula project as
+                   //this ALWAYS needs a FieldUnit as root of the hierarchy
                }
            } catch (DerivedUnitFacadeNotSupportedException e) {
                // w should never get here