Changeset 687 for trunk/grails-app/controllers
- Timestamp:
- Oct 6, 2010, 1:55:47 AM (14 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r627 r687 63 63 def plugins = pluginProperties.collect{ it.key + '-' + it.value }.join(", ") 64 64 65 def sections = Section.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 66 65 67 return [grailsVersion: grailsVersion, 66 68 applicationString: applicationString, 67 plugins: plugins] 69 plugins: plugins, 70 sections: sections] 68 71 } 69 72 -
trunk/grails-app/controllers/ReportController.groovy
r681 r687 144 144 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 145 145 params.currentUser = authService.currentUser 146 if(params.asset.id == 'all') 147 params.asset = "All" 148 else 149 params.asset = Asset.get(params.asset.id.toLong()) 146 if(params.section.id == 'all') { 147 params.section = "All" 148 params.site = "All" 149 } 150 else { 151 params.section = Section.get(params.section.id.toLong()) 152 params.site = params.section.site 153 } 150 154 151 155 def dataModel = assetReportService.getAssetDetail(params, RCU.getLocale(request))
Note: See TracChangeset
for help on using the changeset viewer.