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/views/rawbioassays/edit_rawbioassay.jsp

    r3859 r3909  
    145145      currentPlatformId = Values.getInt(cc.getRecent(Item.PLATFORM.name(), 0), 0);
    146146    }
    147     if (currentPlatformId != 0) currentPlatform = Platform.getById(dc, currentPlatformId);
     147    int currentVariantId = Values.getInt(cc.getRecent(Item.PLATFORMVARIANT.name(), 0), 0);
     148   
     149    try
     150    {
     151      if (currentVariantId != 0) currentVariant = PlatformVariant.getById(dc, currentVariantId);
     152      if (currentPlatformId != 0) currentPlatform = Platform.getById(dc, currentPlatformId);
     153    }
     154    catch (Throwable t)
     155    {}
    148156   
    149157    currentRawDataType = RawDataTypes.getRawDataType(cc.getPropertyValue("rawDataType"));
Note: See TracChangeset for help on using the changeset viewer.