Revision 9245724f
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionColumnAccessor.java | ||
---|---|---|
106 | 106 |
if (distributions != null && !distributions.isEmpty()){ |
107 | 107 |
DescriptionElementBase desc = distributions.iterator().next(); |
108 | 108 |
if (desc instanceof Distribution){ |
109 |
((Distribution)desc).setStatus((PresenceAbsenceTerm)newValue); |
|
109 |
if (((PresenceAbsenceTerm)newValue).getId() == 0){ |
|
110 |
desc.getInDescription().removeElement(desc); |
|
111 |
distributions.remove(desc); |
|
112 |
}else { |
|
113 |
((Distribution)desc).setStatus((PresenceAbsenceTerm)newValue); |
|
114 |
} |
|
110 | 115 |
} |
111 | 116 |
}else{ |
112 | 117 |
if (distributions == null){ |
Also available in: Unified diff
ref #7854: improve removing of distributions in NAT table distribution editor