Changeset 515 for trunk/grails-app
- Timestamp:
- Apr 30, 2010, 3:41:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskService.groovy
r514 r515 10 10 11 11 def authService 12 def dateUtilService 12 13 def assignedGroupService 13 14 def assignedPersonService … … 167 168 /** 168 169 * Creates a subTask copying sane attributes from the parentTask unless otherwise specified in params. 170 * The targetStartDate and targetCompletionDate default to today since that is the sane thing to do. 169 171 * The taskProcedure is only assigned to the sub task if supplied in params. 170 172 * The assignedPersons and assignedGroups are only added to the sub task if supplied in params. 171 173 * Collections in params must be supplied as new ArrayList's. 172 174 * This method is not intended to be a copyTask method. 173 * There should be no reason to copy tasks, try to find a better solution.175 * There should be no reason to copy tasks, recurrence can be used to create similar tasks. 174 176 * @param parentTask The parent task to get attributes from, also set as the parent. 175 177 * @param params Overrides the parent task values if specified. … … 185 187 p.description = params.description ?: parentTask.description 186 188 p.comment = params.comment ?: parentTask.comment 187 p.targetStartDate = params.targetStartDate ?: parentTask.targetStartDate188 p.targetCompletionDate = params.targetCompletionDate ?: parentTask.targetCompletionDate189 p.targetStartDate = params.targetStartDate ?: dateUtilService.today 190 p.targetCompletionDate = params.targetCompletionDate ?: dateUtilService.today 189 191 p.scheduled = params.scheduled ?: parentTask.scheduled 190 192
Note: See TracChangeset
for help on using the changeset viewer.