Changeset 5636


Ignore:
Timestamp:
May 19, 2011, 12:55:36 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1608: batch importer fails on item already exists but it should not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.17-stable/src/plugins/core/net/sf/basedb/plugins/batchimport/AbstractItemImporter.java

    r5481 r5636  
    571571    Set<Include> includes = EnumSet.noneOf(Include.class);
    572572    if (Boolean.TRUE.equals((Boolean)job.getValue("includeMine"))) includes.add(Include.MINE);
    573     if (!Boolean.FALSE.equals((Boolean)job.getValue("includeSharedTo"))) includes.add(Include.MINE);
    574     if (!Boolean.FALSE.equals((Boolean)job.getValue("includeInProject"))) includes.add(Include.IN_PROJECT);
     573    if (Boolean.TRUE.equals((Boolean)job.getValue("includeSharedTo"))) includes.add(Include.SHARED);
     574    if (Boolean.TRUE.equals((Boolean)job.getValue("includeInProject"))) includes.add(Include.IN_PROJECT);
    575575    if (Boolean.TRUE.equals((Boolean)job.getValue("includeOthers"))) includes.add(Include.OTHERS);
    576576    itemQuery = idMethod.prepareQuery(dc, createItemQuery());
    577     itemQuery.include(includes);
     577    itemQuery.setIncludes(includes);
    578578  }
    579579 
Note: See TracChangeset for help on using the changeset viewer.