Changeset 2185


Ignore:
Timestamp:
Jan 9, 2014, 1:20:14 PM (8 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #554: Do not show *.dil items in case summary

A check is made so that *.dil items with 0 remaining quantity are ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/CaseSummaryServlet.java

    r2144 r2185  
    308308          for (Library r : lib)
    309309          {
    310             loadLibraryInfo(dc, r);
    311             jsonLib.add(r.asJSONObject());
     310            // Ignore *.dil items with '0' remaining quantity
     311            if (!r.getName().endsWith(".dil") || r.getExtract().getRemainingQuantity() > 0)
     312            {
     313              loadLibraryInfo(dc, r);
     314              jsonLib.add(r.asJSONObject());
     315            }
    312316          }
    313317          jsonSections.add(loadSectionInfo(sc, "lib"));
Note: See TracChangeset for help on using the changeset viewer.