Changeset 7580 for branches/3.14-stable


Ignore:
Timestamp:
Jan 14, 2019, 3:16:47 PM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2146: Exclude some annotation type categories from selection list when editing annotations

Subtypes that are not related to annotatable items should be ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.14-stable/www/common/annotations/annotate.jsp

    r7579 r7580  
    208208  for (ItemSubtype s : query.list(dc))
    209209  {
    210     excludedCategories.add(s.getName());
     210    if (Annotatable.class.isAssignableFrom(s.getMainItemType().getItemClass()))
     211    {
     212      excludedCategories.add(s.getName());
     213    }
    211214  }
    212215  // Raw data types are also used as subtypes
Note: See TracChangeset for help on using the changeset viewer.