Changeset 2476


Ignore:
Timestamp:
Aug 1, 2006, 8:13:06 AM (16 years ago)
Author:
Martin Svensson
Message:

Fixes #304 An empty list page is viewed when changing the view-preferences for listed items

File:
1 edited

Legend:

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

    r2411 r2476  
    369369      // Include options
    370370      Set<Include> includes = cc.getInclude();
     371      if (Values.getBoolean(request.getParameter("removed")) != includes.contains(Include.REMOVED) ||
     372          Values.getBoolean(request.getParameter("owned")) != includes.contains(Include.MINE) ||
     373          Values.getBoolean(request.getParameter("others")) != includes.contains(Include.OTHERS) ||
     374          Values.getBoolean(request.getParameter("shared")) != includes.contains(Include.SHARED) ||
     375          Values.getBoolean(request.getParameter("inproject")) != includes.contains(Include.IN_PROJECT))
     376      {
     377        cc.setPage(0);
     378      }
    371379      includes.add(Include.NOT_REMOVED);
    372380      setInclude(includes, request.getParameter("removed"), Include.REMOVED);
     
    404412      {
    405413        cc.removeAllPropertyFilters();
     414        cc.setPage(0);
    406415      }
    407416      else
Note: See TracChangeset for help on using the changeset viewer.