fix #5816
authorKatja Luther <k.luther@bgbm.org>
Fri, 20 May 2016 09:26:19 +0000 (11:26 +0200)
committerKatja Luther <k.luther@bgbm.org>
Fri, 20 May 2016 09:26:19 +0000 (11:26 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java

index 1f26a8bc26669896b9bce47aafa18710e3edc8d8..4fa4562cc67817e38d7f38060ff4df2fa9692320 100644 (file)
@@ -435,12 +435,16 @@ public class ReferenceDetailElement extends AbstractIdentifiableEntityDetailElem
                        getEntity().setReferenceAbstract(text_referenceAbstract.getText());
                } else if (eventSource == text_series) {
                        getEntity().setSeriesPart(text_series.getText());
-               } else if (eventSource == text_title) {
+               } else if (eventSource == text_title ) {
                        getEntity().setTitle(text_title.getText());
-                       toggleable_cache.setText(text_title.getText());
-               } else if (eventSource == text_abbrevTitle) {
+                       if (!toggleable_cache.isEnabled()){
+                           toggleable_cache.setText(getEntity().generateTitle());
+                       }
+               } else if (eventSource == text_abbrevTitle ) {
                    getEntity().setAbbrevTitle(text_abbrevTitle.getText());
-                   toggleableAbbrevCache.setText(text_abbrevTitle.getText());
+                   if (!toggleableAbbrevCache.isEnabled()){
+                       toggleableAbbrevCache.setText(getEntity().generateAbbrevTitle());
+                   }
                } else if (eventSource == text_uri) {
                        getEntity().setUri(text_uri.parseText());
                } else if (eventSource == text_volume) {