Changeset 474 for trunk/grails-app/controllers
- Timestamp:
- Mar 31, 2010, 1:42:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r473 r474 122 122 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 123 123 def searchCalendar = { 124 params.max = 30 124 125 if(session.taskSearchParamsMax) 126 params.max = session.taskSearchParamsMax 127 128 // Protect filterPane. 129 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 130 131 // Set the month to show. 132 def showMonth = new Date() 133 if(session.taskSearchCalendarShowMonth) 134 showMonth = session.taskSearchCalendarShowMonth 135 136 if(params.nextMonth) 137 showMonth = dateUtilService.getNextMonth(showMonth) 138 else if(params.previousMonth) 139 showMonth = dateUtilService.getPreviousMonth(showMonth) 140 session.taskSearchCalendarShowMonth = showMonth 125 141 126 142 // Quick Search: … … 155 171 params.quickSearch = "searchTodays" 156 172 } 157 return[taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.totalCount, filterParams: params]173 return[taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.totalCount, showMonth: showMonth, filterParams: params] 158 174 } 159 175 // filterPane: … … 163 179 taskInstanceTotal: taskInstanceTotal, 164 180 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params), 181 showMonth: showMonth, 165 182 params:params ] 166 183 }
Note: See TracChangeset
for help on using the changeset viewer.