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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.