Changeset 549
- Timestamp:
- Jun 9, 2010, 5:17:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/RestController.groovy
r523 r549 62 62 def id = Long.parseLong(params.externalStudyID) 63 63 def study = Study.find( "from Study as s where s.externalStudyID=?", [id]) 64 64 if(study) study.subjects.each { subjects.push it.name } 65 65 } 66 66 render subjects as JSON … … 82 82 def id = Long.parseLong(params.externalStudyID) 83 83 def study = Study.find( "from Study as s where s.externalStudyID=?", [id]) 84 study.assays.each{ assay -> assays.push assay.externalAssayID }84 if(study) study.assays.each{ assay -> assays.push assay.externalAssayID } 85 85 } 86 86 render assays as JSON
Note: See TracChangeset
for help on using the changeset viewer.