Index: trunk/grails-app/services/AssetReportService.groovy
===================================================================
--- trunk/grails-app/services/AssetReportService.groovy	(revision 679)
+++ trunk/grails-app/services/AssetReportService.groovy	(revision 681)
@@ -24,4 +24,7 @@
         def result = [:]
 
+        result.section = Section.get(params.section.id.toLong())
+        result.site = result.section.site
+
         // Inner join used to return only attribTypes that are used by AssetExtendedAttributes.
         // So the result is only asset extendedAttributeTypes.
@@ -44,8 +47,6 @@
                     'left join asset.assetExtendedAttributes as attrib',
                     'left join attrib.extendedAttributeType as attribT'
-            if(params.section instanceof Section) {
-                namedParams.section = params.section
-                where 'asset.section = :section'
-            }
+            where 'asset.section = :section'
+                    namedParams.section = result.section
             order 'by asset.name asc, attribT.name asc'
         }
