Revision f37fa367
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/termtree/e4/TermTreeDtoDropAdapter.java | ||
---|---|---|
253 | 253 |
if (target instanceof TermNodeDto && ((TermNodeDto)target).getTree().isFlat() && getCurrentLocation() == LOCATION_ON){ |
254 | 254 |
isSupported = false; |
255 | 255 |
} |
256 |
TermDto term = null; |
|
257 |
if (getSelectedObject() instanceof TermNodeDto){ |
|
258 |
term = ((TermNodeDto)getSelectedObject()).getTerm(); |
|
259 |
} |
|
260 |
if ((target instanceof TermNodeDto && !((TermNodeDto)target).getTree().isAllowDuplicate() && ((TermNodeDto)target).getTree().getTerms().contains(term)) || (target instanceof TermTreeDto && !((TermTreeDto)target).isAllowDuplicate() && ((TermTreeDto)target).getTerms().contains(term))){ |
|
261 |
isSupported = false; |
|
262 |
} |
|
256 | 263 |
return isSupported; |
257 | 264 |
} |
258 | 265 |
|
Also available in: Unified diff
ref #8776: fix d&d for not allow duplicates