Fix label issue for classification with no label
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 25 May 2016 15:21:53 +0000 (17:21 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 25 May 2016 15:21:53 +0000 (17:21 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/ClassificationDetailElement.java

index 0a583772dd08a9fef91597d0318148f23768ef59..c929611d6a6f42e2f622ed184aa0ce74e4ef5e02 100644 (file)
@@ -79,7 +79,7 @@ public class ClassificationDetailElement extends
        @Override
        protected void createControls(ICdmFormElement formElement,
                Classification entity, int style) {
-           text_treeLabel = formFactory.createTextWithLabelElement(formElement, "Label", entity != null ? entity.getTitleCache() : null, SWT.NULL);
+           text_treeLabel = formFactory.createTextWithLabelElement(formElement, "Label", entity != null ? entity.getName().getText() : null, SWT.NULL);
            selection_reference = formFactory.createSelectionElement(Reference.class, getConversationHolder(), formElement, "Reference",
                    entity != null ? entity.getReference() : null, EntitySelectionElement.ALL, SWT.NULL);
            text_microReference = formFactory.createTextWithLabelElement(formElement, "Reference Detail",