Changeset 681 for trunk/grails-app/services
- Timestamp:
- Oct 5, 2010, 2:24:33 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.