Ignore:
Timestamp:
Feb 23, 2021, 8:23:26 AM (17 months ago)
Author:
Nicklas Nordborg
Message:

References #2237: Implement extension mechanism for query filtering

This should now work on all list pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/itemlists/index.jsp

    r7834 r7914  
    451451    final ItemQuery<ItemList> query = ItemList.getQuery();
    452452    dc = sc.newDbControl();
    453     cc.configureQuery(dc, query, true);
     453    JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, GuiContext.list(itemType), null);
     454    cc.configureQuery(dc, query, jspContext, true);
    454455    dc.close();
    455456    cc.setQuery(query);
     
    468469    final ItemQuery<ItemList> query = ItemList.getQuery();
    469470    dc = sc.newDbControl();
    470     cc.configureQuery(dc, query, true);
     471    JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, GuiContext.list(itemType), null);
     472    cc.configureQuery(dc, query, jspContext, true);
    471473    cc.setQuery(query);
    472     JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, GuiContext.list(itemType), null);
    473474    ExtensionsInvoker<ListColumnAction<ItemList,?>> listInvoker = ListColumnUtil.useExtensions(jspContext);
    474475    listInvoker.render(new ListColumnExportRenderer<ItemList>(cc));
     
    488489    final ItemQuery<ItemList> query = ItemList.getQuery();
    489490    dc = sc.newDbControl();
    490     cc.configureQuery(dc, query, true);
     491    JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, GuiContext.list(itemType), null);
     492    cc.configureQuery(dc, query, jspContext, true);
    491493    dc.close();
    492494    cc.setQuery(query);
Note: See TracChangeset for help on using the changeset viewer.