fix #4249
authorKatja Luther <k.luther@bgbm.org>
Tue, 24 Jun 2014 08:52:59 +0000 (08:52 +0000)
committerKatja Luther <k.luther@bgbm.org>
Tue, 24 Jun 2014 08:52:59 +0000 (08:52 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/AbstractTermBaseDetailElement.java

index 04428ca910cde207a548951eb0f5d715908dd0e2..bc3e90e213a7c53149929fae7959991541f3acd2 100644 (file)
@@ -9,6 +9,7 @@
 */\r
 package eu.etaxonomy.taxeditor.ui.section.vocabulary;\r
 \r
+import eu.etaxonomy.cdm.model.common.Language;\r
 import eu.etaxonomy.cdm.model.common.Representation;\r
 import eu.etaxonomy.cdm.model.common.TermBase;\r
 import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
@@ -47,11 +48,12 @@ public abstract class AbstractTermBaseDetailElement<T extends TermBase> extends
        @Override\r
        protected void createControls(ICdmFormElement formElement,\r
                        T entity, int style) {\r
+               \r
                Representation representation = getEntity().getRepresentation(CdmStore.getDefaultLanguage());\r
                \r
                if(representation == null){\r
-                       formFactory.createLabel(formElement, "No represantation for the current default Language");\r
-                       return;\r
+                       //formFactory.createLabel(formElement, "No represantation for the current default Language, english version is used.");\r
+                       representation = getEntity().getRepresentation(Language.ENGLISH());\r
                }\r
                \r
                text_label = formFactory.createTextWithLabelElement(formElement, "Label", representation.getLabel(), style);\r