Ignore:
Timestamp:
Jun 25, 2010, 4:00:34 PM (6 years ago)
Author:
keesvb
Message:

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

File:
1 edited

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