Changeset 478 for trunk/grails-app/services
- Timestamp:
- Apr 7, 2010, 5:37:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskService.groovy
r433 r478 185 185 p.targetStartDate = params.targetStartDate ?: parentTask.targetStartDate 186 186 p.targetCompletionDate = params.targetCompletionDate ?: parentTask.targetCompletionDate 187 p.scheduled = params.scheduled ?: parentTask.scheduled 187 188 188 189 p.taskGroup = params.taskGroup ?: parentTask.taskGroup … … 194 195 p.associatedAssets = params.associatedAssets ?: new ArrayList(parentTask.associatedAssets) // Collection. 195 196 196 // Only if supplied, otherwise this would be copying.197 if(params.scheduled) p.scheduled = params.scheduled198 if(params.approved) p.approved = params.approved199 200 197 // Supplied by recurring tasks. 201 198 if(params.taskProcedure) p.taskProcedure = params.taskProcedure … … 210 207 // Create the sub task and return the result. 211 208 result = save(p) 209 210 // Approve. 211 if(!result.error && parentTask.approved) { 212 p = [:] 213 p.id = result.taskInstance.id 214 approve(p) 215 } 216 217 // Success. 218 return result 212 219 213 220 } // end createSubTask()
Note: See TracChangeset
for help on using the changeset viewer.