fix #2480
authorU-BGBM\k.luther <k.luther@BGBM11732.bgbm.fu-berlin.de>
Thu, 13 Aug 2015 11:31:46 +0000 (13:31 +0200)
committerU-BGBM\k.luther <k.luther@BGBM11732.bgbm.fu-berlin.de>
Thu, 13 Aug 2015 11:31:46 +0000 (13:31 +0200)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/PolytomousKeyViewPart.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/key/PolytomousKeyNodeDetailElement.java

index 6075a50..09861da 100644 (file)
@@ -247,6 +247,8 @@ public class PolytomousKeyViewPart extends ViewPart implements
         */
        @Override
        public boolean postOperation(CdmBase objectAffectedByOperation) {
+               getConversationHolder().bind();
+               getConversationHolder().commit(true);
                viewer.refresh();
                return true;
        }
index b11a177..46c95c8 100644 (file)
@@ -64,13 +64,19 @@ public class PolytomousKeyNodeDetailElement extends
                element_statement = formFactory.createKeyStatementElement(formElement,
                                "State(ment)", entity.getStatement(), 50, style);
 
-               //if (entity.isLeaf()) {
+               if (entity.isLeaf()) {
                        selection_taxon = formFactory
                                        .createSelectionElement(Taxon.class,
                                                        getConversationHolder(), formElement, "Taxon",
                                                        entity.getTaxon(), EntitySelectionElement.NOTHING,
                                                        style);
-               //}
+               } else{
+                       selection_taxon = formFactory
+                                       .createSelectionElement(Taxon.class,
+                                                       getConversationHolder(), formElement, "Taxon",
+                                                       entity.getTaxon(), EntitySelectionElement.DELETABLE,
+                                                       style);
+               }
 
                selection_subkey = formFactory
                                .createSelectionElement(PolytomousKey.class,