Changeset 903


Ignore:
Timestamp:
Sep 30, 2010, 3:35:55 PM (6 years ago)
Author:
keesvb
Message:

Changed JSON name for study title to title in getStudies REST method

File:
1 edited

Legend:

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

    r901 r903  
    8686                def user = params.user
    8787                Study.findAllByOwner(requestUser).each { study ->
    88                         studies.push( [ 'externalStudyID': study.code, 'name':study.title, 'studyToken':study.code ] )
     88                        studies.push( [ 'externalStudyID': study.code, 'title':study.title, 'studyToken':study.code ] )
    8989                }
    9090                render studies as JSON
Note: See TracChangeset for help on using the changeset viewer.