Changeset 4987


Ignore:
Timestamp:
Sep 28, 2018, 1:01:59 PM (3 years ago)
Author:
olle
Message:

Refs #1029. Case summary for active project SCAN-B-rec updated for input of blood item ID to not remove suffix, since the new item name convention for blood items uses integer suffices ".1, ".2", etc. to name blood samples connected to the same case item:

  1. Java servlet class/file CaseSummaryServlet.java in src/net/sf/based/meludi/servlet/ updated in protected method void doGet(HttpServletRequest req, HttpServletResponse resp) for command "GetCaseInfo" to not remove suffix, when testing for input blood item ID.
File:
1 edited

Legend:

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

    r4986 r4987  
    153153            if (itemName.startsWith(Meludi.fetchBloodItemPrefix(sc.getActiveProjectId())))
    154154            {
    155               // Remove optional suffix starting with dot "."
    156               String baseName = "" + itemName;
    157               int dotIndex = itemName.indexOf(".");
    158               if (dotIndex >= 0)
    159               {
    160                 // Remove part starting with first dot
    161                 baseName = baseName.substring(0, dotIndex);
    162               }
    163               Blood blood = Blood.getByName(dc, baseName);
     155              Blood blood = Blood.getByName(dc, itemName);
    164156              if (blood != null)
    165157              {
Note: See TracChangeset for help on using the changeset viewer.