Changeset 681 for trunk/grails-app
- Timestamp:
- Oct 5, 2010, 2:24:33 AM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r679 r681 161 161 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 162 162 params.currentUser = authService.currentUser 163 if(params.section.id == 'all')164 params.section = "All"165 else166 params.section = Section.get(params.section.id.toLong())167 163 168 164 def dataModel = assetReportService.getAssetRegister(params, RCU.getLocale(request)) -
trunk/grails-app/services/AssetReportService.groovy
r679 r681 24 24 def result = [:] 25 25 26 result.section = Section.get(params.section.id.toLong()) 27 result.site = result.section.site 28 26 29 // Inner join used to return only attribTypes that are used by AssetExtendedAttributes. 27 30 // So the result is only asset extendedAttributeTypes. … … 44 47 'left join asset.assetExtendedAttributes as attrib', 45 48 'left join attrib.extendedAttributeType as attribT' 46 if(params.section instanceof Section) { 47 namedParams.section = params.section 48 where 'asset.section = :section' 49 } 49 where 'asset.section = :section' 50 namedParams.section = result.section 50 51 order 'by asset.name asc, attribT.name asc' 51 52 } -
trunk/grails-app/views/appCore/start.gsp
r679 r681 156 156 <g:select optionKey="id" 157 157 from="${Section.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 158 name="section.id" 159 noSelection="['all':/${g.message(code:'default.all.select.text')}/]"> 158 name="section.id"> 160 159 </g:select> 161 160 </g:jasperReport>
Note: See TracChangeset
for help on using the changeset viewer.