Revision a53422d5
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/SpecimenTypeDesignationElement.java | ||
---|---|---|
81 | 81 |
super.handleEvent(eventSource); |
82 | 82 |
if (eventSource == combo_typeStatus) { |
83 | 83 |
|
84 |
if (entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null){
|
|
84 |
if ((combo_typeStatus.getSelection() == null && entity.getCitation() != null) || ( entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null)){
|
|
85 | 85 |
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5); |
86 | 86 |
if (!ok){ |
87 | 87 |
combo_typeStatus.setSelection(entity.getTypeStatus()); |
Also available in: Unified diff
ref #8136: fix handling if status is set to null