Changeset 710 for trunk/grails-app/services
- Timestamp:
- Nov 16, 2010, 7:56:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/AssetReportService.groovy
r706 r710 134 134 def result = [:] 135 135 136 def fail = { Map m -> 137 result.error = [ code: m.code, args: [] ] 138 return result 139 } 140 136 141 result.section = Section.get(params.section.id.toLong()) 137 142 result.site = result.section.site … … 149 154 params.endDate = dateUtilService.today 150 155 151 // Normalise date range.152 156 if(params.endDate < params.startDate) 153 params.endDate = params.startDate157 return fail(code: "default.end.date.before.start.date") 154 158 155 159 // Inner join used to return only attribTypes that are used by AssetSubItemExtendedAttributes.
Note: See TracChangeset
for help on using the changeset viewer.