ref #9836: fix problem of missing name in source
authorKatja Luther <k.luther@bgbm.org>
Wed, 3 Nov 2021 11:37:34 +0000 (12:37 +0100)
committerKatja Luther <k.luther@bgbm.org>
Wed, 3 Nov 2021 11:37:34 +0000 (12:37 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/SecundumSourceElement.java

index 79fdc1842e61eadbdf41a281f215bb21c3f83f1e..5c743d5039c504c3c003de1b5929e004f9d38371 100755 (executable)
@@ -65,7 +65,9 @@ public class SecundumSourceElement extends OriginalSourceElement<SecundumSource>
 
         Label sep = formFactory.createLabel(formElement.getLayoutComposite(), "");
         sep.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
-        
+        if (this.cdmEntity instanceof Taxon){
+               select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Name in Source", entity != null? ((NamedSourceBase)entity).getNameUsedInSource(): null, EntitySelectionElement.DELETABLE, style);
+        }
         
         externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, "Links", false, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
         externalLinks.setEmptySectionString("No links yet.");