Ignore:
Timestamp:
Apr 21, 2011, 3:49:23 PM (10 years ago)
Author:
s.h.sikkema@…
Message:

fixed bug where preview of small export would fail; changed assay excel export to CSV because of excel limitations; ajaxGetAssays correctly handles case of no available studies; RelTime? is output as human readable string in export; units are displayed in header of export; submit button is disabled when no assays are available; added instructions to assay export

File:
1 edited

Legend:

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

    r1768 r1790  
    11package dbnp.studycapturing
    22
    3 import grails.converters.*
    43import grails.plugins.springsecurity.Secured
    54import org.dbnp.gdt.TemplateFieldType
    65import org.dbnp.gdt.RelTime
    7 
     6import grails.converters.JSON
    87
    98/**
     
    383382                response.contentType = 'application/json'
    384383
    385         render study?.assays?.collect{[name: it.name, id: it.id]} as JSON
     384        render ((study?.assays?.collect{[name: it.name, id: it.id]} ?: []) as JSON)
    386385    }
    387386       
Note: See TracChangeset for help on using the changeset viewer.