Changeset 3013


Ignore:
Timestamp:
Dec 8, 2006, 3:26:08 PM (16 years ago)
Author:
Martin Svensson
Message:

Fixes #98 "Excluded" items are still included if a list is exported

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/plugins/SimpleExport.java

    r3012 r3013  
    323323      // Not true, if we are on the last page
    324324    }
    325    
     325    final String exclude = (String)cc.getObject("exclude");
     326    if (exclude != null)
     327    {
     328      query.restrict(
     329        Restrictions.not(
     330          Restrictions.in(
     331            Hql.property("id"),
     332            Expressions.parameter("_excludes_")
     333          )
     334        )
     335      );
     336      query.setParameter("_excludes_", Arrays.asList(Values.getInt(exclude.split(","))), Type.INT);
     337    }
    326338    try
    327339    {
Note: See TracChangeset for help on using the changeset viewer.