Changeset 1631


Ignore:
Timestamp:
Mar 14, 2011, 2:55:21 PM (6 years ago)
Author:
s.h.sikkema@…
Message:

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

File:
1 edited

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]
Note: See TracChangeset for help on using the changeset viewer.