Changeset 709 for trunk/grails-app/controllers
- Timestamp:
- Nov 15, 2010, 12:04:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r708 r709 112 112 params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate) 113 113 114 def dataModel = taskReportService.getImmediateCallouts(params, RCU.getLocale(request)) 115 116 // Jasper plugin controller expects data to be a Collection. 117 chain(controller:'jasper', action:'index', model:[data: [dataModel]], params:params) 114 def result = taskReportService.getImmediateCallouts(params, RCU.getLocale(request)) 115 116 if(!result.error) { 117 // Jasper plugin controller expects data to be a Collection. 118 chain(controller:'jasper', action:'index', model:[data: [result]], params:params) 119 return 120 } 121 122 flash.errorMessage = g.message(code: result.error.code, args: result.error.args) 123 redirect(controller: 'appCore', action: 'start', params: [showTab:'showReportsTab']) 118 124 119 125 } // immediateCallouts
Note: See TracChangeset
for help on using the changeset viewer.