BugFix for Ticket #3178. Now the TitleCache will be updated everytime if the label...
authorAlexander Oppermann <a.oppermann@bgbm.org>
Fri, 23 Nov 2012 15:24:31 +0000 (15:24 +0000)
committerAlexander Oppermann <a.oppermann@bgbm.org>
Fri, 23 Nov 2012 15:24:31 +0000 (15:24 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/AbstractTermBaseDetailElement.java

index 2f90fbb2fe5a2e0d7aae4da4bd2d357183398c1b..04428ca910cde207a548951eb0f5d715908dd0e2 100644 (file)
@@ -69,7 +69,8 @@ public abstract class AbstractTermBaseDetailElement<T extends TermBase> extends
        }\r
        \r
        protected void handleRepresentation(Object eventSource){\r
-               Representation representation = getEntity().getRepresentation(CdmStore.getDefaultLanguage());\r
+               T entity = getEntity();\r
+               Representation representation = entity.getRepresentation(CdmStore.getDefaultLanguage());\r
                \r
                if (representation == null){\r
                        return;\r
@@ -77,6 +78,7 @@ public abstract class AbstractTermBaseDetailElement<T extends TermBase> extends
                \r
                if (eventSource == text_label){\r
                        representation.setLabel(text_label.getText());\r
+                       entity.setLabel(text_label.getText());\r
                }else if (eventSource == text_abbreviatedLabel){\r
                        representation.setAbbreviatedLabel(text_abbreviatedLabel.getText());\r
                }else if (eventSource == text_description){\r