Changeset 1631

Show
Ignore:
Timestamp:
14-03-11 14:55:21 (3 years ago)
Author:
s.h.sikkema@…
Message:

Fixed 'Assay has no value (null)' error in assay exporter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/AssayController.groovy

    r1583 r1631  
    170170 
    171171        def fieldMap = flash.fieldMap 
     172        def assayId = flash.assayId 
    172173 
    173174        def fieldMapSelection = [:] 
     
    213214        } 
    214215 
    215         Assay assay = Assay.get(flash.assayId) 
     216        Assay assay = Assay.get(assayId) 
    216217 
    217218        // check if assay exists 
    218219        if (!assay) { 
    219220 
    220             flash.errorMessage = flash.assayId ? "No assay found with id: ${flash.assayId}" : 'Assay has no value (null).' 
     221            flash.errorMessage = assayId ? "No assay found with id: ${assayId}" : 'Assay has no value (null).' 
    221222            redirect action: 'selectAssay' 
    222223            return 
     
    233234 
    234235            def assayDataPreview = rowData[0..4].collect{it[0..4]} 
    235  
    236236 
    237237            [assayDataPreview: assayDataPreview]