Project

General

Profile

« Previous | Next » 

Revision e7849426

Added by Katja Luther about 3 years ago

ref #8776: revert d&d check for duplicates

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/termtree/e4/TermTreeDtoDropAdapter.java
257 257
        if (getSelectedObject() instanceof TermNodeDto){
258 258
            term = ((TermNodeDto)getSelectedObject()).getTerm();
259 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
        }
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
//        }
263 263
        return isSupported;
264 264
    }
265 265

  

Also available in: Unified diff