Changeset 2237 for trunk/grails-app/services/dbnp
- Timestamp:
- May 29, 2012, 4:24:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/dbnp/generic/AjaxService.groovy
r2160 r2237 51 51 def uniqueEventTemplateNames = (params.containsKey('uniqueEventTemplateNames[]')) ? getAsArray(params['uniqueEventTemplateNames[]']) : [] 52 52 def uniqueSamplingEventTemplateNames = (params.containsKey('uniqueSamplingEventTemplateNames[]')) ? getAsArray(params['uniqueSamplingEventTemplateNames[]']) : [] 53 def modules = (params.containsKey('modules[]')) ? getAsArray(params['modules[]']) : [] 53 54 54 55 // iterate through readable studies for this user … … 63 64 // 3. if any samplingEventTemplateNames were selected, see if this study contains any of these 64 65 matched = (matched && (!uniqueSamplingEventTemplateNames.size() || study.samplingEvents.find{uniqueSamplingEventTemplateNames.contains(it.template.id)})) ? true : false; 66 // 4. if any modules were selected, see if this study contains any of these 67 matched = (matched && (!modules.size() || study.assays.find{modules.contains(it.module.id)})) ? true : false; 65 68 66 69 // if criteria are met, add this study to the matchedStudies array
Note: See TracChangeset
for help on using the changeset viewer.