fix #10166: fix behaviour of titlecache field for specimen
authorKatja Luther <k.luther@bgbm.org>
Wed, 5 Oct 2022 07:55:45 +0000 (09:55 +0200)
committerKatja Luther <k.luther@bgbm.org>
Wed, 5 Oct 2022 07:55:45 +0000 (09:55 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java

index f62d0f4a236ba08bcbf13729b5014e45de7aa333..0214816c6de6fb24d66f0d701dcb9315cf8973f7 100644 (file)
@@ -139,9 +139,12 @@ public class DerivedUnitGeneralDetailElement extends
        @Override
        public void handleEvent(Object eventSource) {
                if (eventSource == toggleableText_titleCache) {
+                       
                        getEntity().setTitleCache(toggleableText_titleCache.getText(),
                                        toggleableText_titleCache.getState());
-
+                       if (toggleableText_titleCache.getState()) {
+                               return;
+                       }                       
                } else if (eventSource == selection_country) {
                        getEntity().setCountry(selection_country.getSelection());
                } else if (eventSource == languageText_locality) {