Changeset 4837


Ignore:
Timestamp:
Mar 24, 2009, 11:24:26 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1265: Hybridization batch importer should set "number of arrays" automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/batchimport/HybridizationImporter.java

    r4597 r4837  
    261261        }
    262262      }
    263       else if (nameOrId == null || slide != null) hyb.setArraySlide(slide);
     263      else if (nameOrId == null || slide != null)
     264      {
     265        hyb.setArraySlide(slide);
     266        if (slide != null && numArraysMapper == null)
     267        {
     268          // If the number of arrays hasn't been mapped we try to get the
     269          // value from the array design
     270          try
     271          {
     272            hyb.setNumArrays(slide.getArrayBatch().getArrayDesign().getNumArrays());
     273          }
     274          catch (RuntimeException ex)
     275          {}
     276        }
     277      }
    264278    }
    265279    updateMultiLineItem(dc, hyb, data, 0);
Note: See TracChangeset for help on using the changeset viewer.