Show
Ignore:
Timestamp:
25-06-10 16:00:34 (4 years ago)
Author:
keesvb
Message:

changed RestController? to accept study code as study identifier for getAssays (is a string)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/RestController.groovy

    r602 r624  
    8080                List assays = []  
    8181                if( params.externalStudyID ) { 
    82                         def id = Long.parseLong(params.externalStudyID) 
    83                         def study = Study.find( "from Study as s where s.code=?", [id]) 
     82                        def study = Study.find( "from Study as s where s.code=?", [params.externalStudyID]) 
    8483                        if(study) study.assays.each{ assay -> assays.push assay.externalAssayID } 
    8584                }