Changeset 4876


Ignore:
Timestamp:
Apr 3, 2009, 8:10:24 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1288: Tables doesn't indicate if there is a filter on a property that doesn't have a column in the table

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/taglib/table/PresetSelector.java

    r4674 r4876  
    3939import net.sf.basedb.util.Values;
    4040
     41import java.util.Collection;
    4142import java.util.List;
    4243import javax.servlet.jsp.JspException;
     
    345346   
    346347    int numFiltered = table.getNumFilteredColumns();
     348    if (numFiltered == 0) numFiltered = cc.getNumPropertyFilters();
    347349    if (numFiltered > 0)
    348350    {
  • trunk/src/core/net/sf/basedb/core/ItemContext.java

    r4607 r4876  
    537537  {
    538538    return propertyFilters == null ? null : propertyFilters.values();
     539  }
     540 
     541  /**
     542    Get the number of property filters stored in this
     543    context.
     544    @since 2.12
     545  */
     546  public int getNumPropertyFilters()
     547  {
     548    return propertyFilters == null ? 0 : propertyFilters.size();
    539549  }
    540550 
Note: See TracChangeset for help on using the changeset viewer.