Ignore:
Timestamp:
Oct 6, 2010, 1:55:47 AM (14 years ago)
Author:
gav
Message:

Change assetDetail report to allow reporting by section and display site in report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/AssetReportService.groovy

    r686 r687  
    111111                    'left join asset.assetExtendedAttributes as attrib',
    112112                    'left join attrib.extendedAttributeType as attribT'
    113             if(params.asset instanceof Asset) {
    114                 namedParams.asset = params.asset
    115                 where 'asset = :asset'
     113            if(params.section instanceof Section) {
     114                namedParams.section = params.section
     115                where 'asset.section = :section'
    116116            }
    117117            order 'by asset.name asc, attribT.name asc'
Note: See TracChangeset for help on using the changeset viewer.