add null value to code edition drop down
authorKatja <k.luther@bgbm.org>
Mon, 29 Apr 2024 12:47:20 +0000 (14:47 +0200)
committerKatja <k.luther@bgbm.org>
Mon, 29 Apr 2024 12:47:20 +0000 (14:47 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/RuleConsideredElement.java

index 6abaed300231a3eedfab0f565266c1045da54c0f..a5be8ae1568605573a0c1cf1559640464a67e01d 100644 (file)
@@ -51,7 +51,7 @@ public class NonViralNameDetailElement
         if (config == null){
             toggleable_cache = formFactory.createToggleableTextField(formElement, "Cache", entity.getTitleCache(), entity.isProtectedTitleCache() || entity.isProtectedFullTitleCache(), style);
 
-            combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style);
+            combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style, true);
             combo_nomenclaturalCode.setSelection(entity.getNameType());
             if (entity.getNameType().equals(NomenclaturalCode.ICNP)){
                text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style);
@@ -256,7 +256,7 @@ public class NonViralNameDetailElement
        @Override
        public void fillFields() {
                super.fillFields();
-               
+
                section_name.getDetailElement().fillFields();;
                section_author.getDetailElement().fillFields();
                combo_nomenclaturalCode.setSelection(getEntity().getNameType());
@@ -265,6 +265,6 @@ public class NonViralNameDetailElement
                if (text_nameApprobation != null) {
                        text_nameApprobation.setText(getEntity().getNameApprobation());
                }
-               
+
        }
 }
\ No newline at end of file
index a4576968eddeb6a9a2836645fd5030a208c8cb41..db3ce459d906955a535a598362aaf8b122d016dd 100644 (file)
@@ -51,7 +51,7 @@ public class RuleConsideredElement extends AbstractCdmFormElement implements Sel
         super(formFactory, formElement);
         this.textRuleConsidered = formFactory.createTextWithLabelElement(formElement, "Rule Considered", null, style);
         if(isShowCodeEdition){
-            this.nomenclaturalCodeEdition = formFactory.createEnumComboElement(NomenclaturalCodeEdition.class, formElement, style);
+            this.nomenclaturalCodeEdition = formFactory.createEnumComboElement(NomenclaturalCodeEdition.class, formElement, style, true);
             nomenclaturalCodeEdition.addSelectionListener(this);
             nomenclaturalCodeEdition.setIndent(10);