Changeset 198
- Timestamp:
- Feb 15, 2010, 4:48:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/SearchableController.groovy
r196 r198 58 58 59 59 60 61 60 // subgroups 62 61 // provide list of subgroups depending on the type of subgrouping … … 70 69 render(params) 71 70 render("Subject Groups") 72 subgroups=["subject group 1","subject group 2"] 71 def studyGroups = [] 72 if(selectedStudies!=null) 73 { 74 selectedStudies.each{ study -> 75 study.groups.each{ group -> studyGroups.add[group] } 76 } 77 println "study groups: " 78 studyGroups.each{x-> println x} 79 } 80 81 // testing: 82 // there is a lack of data in the mockup 83 // as long as there are no groups in the bootstart, 84 // we use this 85 subgroups = studyGroups.size()<=0 ? 86 ["subject group 1","subject group 2"] : studyGroups 87 73 88 render(view:"selectsample",model:[selectedStudies:selectedStudies,selectedStudyIds:selectedStudyIds,subgroups:subgroups]) 74 89 break
Note: See TracChangeset
for help on using the changeset viewer.