Changeset 5125


Ignore:
Timestamp:
Oct 9, 2009, 2:28:36 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1399: Array slide's create multiple puts a wrong number into batch index field

Location:
branches/2.13-stable/www/lims/arrayslides
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.13-stable/www/lims/arrayslides/create_wizard.jsp

    r4511 r5125  
    315315      <input type="hidden" name="arraybatch_id" value="<%=arrayBatchId%>">
    316316      <input type="hidden" name="quantity" value="<%=quantity%>">
    317      
     317      <input type="hidden" name="start_at" value="<%=startAt%>">
     318           
    318319      <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    319320      <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"
  • branches/2.13-stable/www/lims/arrayslides/index.jsp

    r5060 r5125  
    183183    dc = sc.newDbControl();
    184184    int quantity = Values.getInt(request.getParameter("quantity"));
    185     int batchId = Values.getInt(request.getParameter("arraybatch_id"));   
     185    int batchId = Values.getInt(request.getParameter("arraybatch_id"));
     186    int startAt = Values.getInt(request.getParameter("start_at"), 1);
    186187    String description = Values.getStringOrNull(request.getParameter("description"));
    187188    ArrayBatch batch = ArrayBatch.getById(dc, batchId);
     
    195196      dc.saveItem(slide);
    196197      slide.setName(Values.getStringOrNull(request.getParameter("name"+i)));
    197       slide.setBatchIndex(batchId);
     198      slide.setBatchIndex(startAt + i);
    198199     
    199200      String newBarcode = Values.getStringOrNull(request.getParameter("barcode" + i));
Note: See TracChangeset for help on using the changeset viewer.