Project

General

Profile

« Previous | Next » 

Revision 73308c9b

Added by Patrick Plitzner about 8 years ago

empty taxon field when selecting name #5602

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DeterminationEventDetailElement.java
133 133
			getEntity().setPreferredFlag(checkbox_preferredFlag.getSelection());
134 134
		} else if (eventSource == selectionTaxonNameBase) {
135 135
		    getEntity().setTaxonName(selectionTaxonNameBase.getSelection());
136
		    //empty taxon field if name does not belong the taxon
137
		    TaxonBase taxonBase = selection_taxonBase.getEntity();
138
			if(taxonBase!=null && taxonBase.getName()!=null 
139
					&& !taxonBase.getName().equals(selectionTaxonNameBase.getSelection())){
140
				selection_taxonBase.setEntity(null);
141
			}
136 142
		} else if (eventSource == selection_taxonBase) {
137 143
			TaxonBase taxon = selection_taxonBase.getSelection();
138 144
            getEntity().setTaxon(taxon);

Also available in: Unified diff