Changeset 6722


Ignore:
Timestamp:
Feb 11, 2015, 1:57:10 PM (7 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1919: The primary annotations list may not contain all annotation in category

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4-stable/www/common/annotations/list_annotations.jsp

    r6607 r6722  
    4242  import="net.sf.basedb.core.ItemQuery"
    4343  import="net.sf.basedb.core.ItemResultList"
     44  import="net.sf.basedb.core.Include"
    4445  import="net.sf.basedb.core.PermissionDeniedException"
    4546  import="net.sf.basedb.core.query.Orders"
     
    169170  {
    170171    ItemQuery<AnnotationType> query = AnnotationType.getQuery(item.getType());
     172    query.setIncludes(Include.ALL);
    171173    query.join(Hql.innerJoin("categories", "ct"));
    172174    query.restrict(Restrictions.eq(Hql.property("ct", "name"), Expressions.string(selectedCategoryName)));
Note: See TracChangeset for help on using the changeset viewer.