Revision 6fca42dd
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DeterminationEventDetailElement.java | ||
---|---|---|
111 | 111 |
} else if (eventSource == selectionTaxonNameBase) { |
112 | 112 |
TaxonName name = selectionTaxonNameBase.getSelection(); |
113 | 113 |
getEntity().setTaxonName(name); |
114 |
//empty taxon field if name was deleted
|
|
114 |
//empty taxon field if name was deleted |
|
115 | 115 |
//or does not belong the taxon |
116 | 116 |
TaxonBase taxonBase = selection_taxonBase.getEntity(); |
117 | 117 |
if(name==null || |
... | ... | |
123 | 123 |
} else if (eventSource == selection_taxonBase) { |
124 | 124 |
TaxonBase taxon = selection_taxonBase.getSelection(); |
125 | 125 |
getEntity().setTaxon(taxon); |
126 |
getEntity().setTaxonName(taxon!=null?taxon.getName():null); |
|
127 |
selectionTaxonNameBase.setEntity(taxon!=null?taxon.getName():null); |
|
126 |
if(taxon!=null){ |
|
127 |
getEntity().setTaxonName(taxon.getName()); |
|
128 |
selectionTaxonNameBase.setEntity(taxon.getName()); |
|
129 |
} |
|
128 | 130 |
} |
129 | 131 |
// else if(eventSource == TODO set of references){ |
130 | 132 |
// |
Also available in: Unified diff
ref #7102 Avoid deleting taxon name when deleting taxon