Ignore:
Timestamp:
Nov 6, 2007, 8:57:58 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #721: Store data in files instead of in the database

Remember most recently used platform/variant when creating raw bioassays/array designs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/lims/arraydesigns/edit_design.jsp

    r3859 r3909  
    7676    title = "Create array design";
    7777    cc.removeObject("item");
     78    int currentPlatformId = Values.getInt(cc.getRecent(Item.PLATFORM.name(), 0), 0);
     79    int currentVariantId = Values.getInt(cc.getRecent(Item.PLATFORMVARIANT.name(), 0), 0);
     80    try
     81    {
     82      if (currentPlatformId != 0) currentPlatform = Platform.getById(dc, currentPlatformId);
     83      if (currentVariantId != 0) currentVariant = PlatformVariant.getById(dc, currentVariantId);
     84    }
     85    //catch (Throwable t)
     86    finally
     87    {}
    7888  }
    7989  else
Note: See TracChangeset for help on using the changeset viewer.