Changeset 7286


Ignore:
Timestamp:
Jan 31, 2017, 9:49:32 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2050: Add subtype and node columns to job item

The filter for subtype column in the list view should have a 'none' option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.10-stable/www/views/jobs/list_jobs.jsp

    r7269 r7286  
    196196        exportable="true"
    197197      />
    198       <%
    199       Enumeration<String, String> jobTypes = new Enumeration<String, String>();
    200       for (ItemSubtype subtype : typeQuery.list(dc))
    201       {
    202         jobTypes.add(Integer.toString(subtype.getId()), HTML.encodeTags(subtype.getName()));
    203       }
    204       %>   
    205198      <tbl:columndef
    206199        id="itemSubtype"
     
    209202        exportproperty="itemSubtype.name:string"
    210203        datatype="int"
    211         enumeration="<%=jobTypes%>"
     204        enumeration="<%=Enumeration.fromItems(typeQuery.list(dc), "-none-")%>"
    212205        title="Subtype"
    213206        sortable="true"
Note: See TracChangeset for help on using the changeset viewer.