Ignore:
Timestamp:
Jun 5, 2007, 1:58:36 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #558 and #568

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/plugindefinitions/index.jsp

    r2978 r3452  
    4242  import="net.sf.basedb.core.RoleKey"
    4343  import="net.sf.basedb.core.plugin.Plugin"
     44  import="net.sf.basedb.core.query.Hql"
    4445  import="net.sf.basedb.util.RemovableUtil"
    4546  import="net.sf.basedb.util.ShareableUtil"
     
    302303    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    303304    final ItemQuery<PluginDefinition> query = PluginDefinition.getQuery();
     305    query.join(Hql.leftJoin("guiContexts", "ctx"));
     306    query.setDistinct(true);
    304307    cc.configureQuery(query, true);
    305308    cc.setQuery(query);
     
    317320    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    318321    final ItemQuery<PluginDefinition> query = PluginDefinition.getQuery();
     322    query.join(Hql.leftJoin("guiContexts", "ctx"));
     323    query.setDistinct(true);
    319324    cc.configureQuery(query, true);
    320325    cc.setQuery(query);
     
    332337    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    333338    final ItemQuery<PluginDefinition> query = PluginDefinition.getQuery();
     339    query.join(Hql.leftJoin("guiContexts", "ctx"));
     340    query.setDistinct(true);
    334341    cc.configureQuery(query, true);
    335342    cc.setQuery(query);
Note: See TracChangeset for help on using the changeset viewer.