Ignore:
Timestamp:
Apr 30, 2020, 2:49:01 PM (2 years ago)
Author:
Nicklas Nordborg
Message:

References #2209: Add items to existing item list from list page

Fixed on the sample list page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.16-stable/www/biomaterials/samples/index.jsp

    r7703 r7802  
    497497    redirect = "../../views/itemlists/index.jsp?ID="+ID+"&cmd=NewItem&addItems=1&memberType=SAMPLE&formId=samples";
    498498  }
     499  else if ("AddItemsToList".equals(cmd))
     500  {
     501    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
     502    final ItemQuery<Sample> query = Sample.getQuery();
     503    dc = sc.newDbControl();
     504    cc.configureQuery(dc, query, true);
     505    dc.close();
     506    cc.setQuery(query);
     507    redirect = "../../views/itemlists/add_items.jsp?ID="+ID+"&memberType=SAMPLE&formId=samples";
     508  }
    499509  else if ("PlaceOnPlate".equals(cmd))
    500510  {
Note: See TracChangeset for help on using the changeset viewer.