Changeset 1825

Show
Ignore:
Timestamp:
09-05-11 11:57:19 (3 years ago)
Author:
work@…
Message:

- resolves #424

Location:
trunk/grails-app
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy

    r1802 r1825  
    3939        def studySelect = { attrs -> 
    4040                // Find all studies the user has access to (max 100) 
    41                 attrs.from = Study.giveWritableStudies(authenticationService.getLoggedInUser(), 100); 
     41                attrs.from = [] 
     42                attrs.optionKey         = 'id' 
     43                attrs.optionValue       = 'title' 
     44                Study.giveWritableStudies(authenticationService.getLoggedInUser(), 100).each { 
     45                        attrs.from[ attrs.from.size() ] = [ 
     46                                id              :       it.properties.id, 
     47                                title   :       it.toString() 
     48                        ] 
     49                } 
    4250 
    4351                // got a name? 
  • trunk/grails-app/views/studyWizard/pages/_modify.gsp

    r1461 r1825  
    2121        </span> 
    2222 
    23         <af:studyElement name="study" description="Study" error="study" value=""> 
     23        <af:studyElement name="studyid" description="Study" error="study" value=""> 
    2424                The study you would like to load and edit 
    2525        </af:studyElement>