Changeset 851 for trunk/grails-app/services/TaskService.groovy
- Timestamp:
- Mar 8, 2011, 6:33:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskService.groovy
r838 r851 388 388 return fail(field:"task", code:"task.failedToSave") 389 389 390 391 if(params.submitAction) { 392 def actionResult 393 def submit_andSetAttentionFlag = { 394 actionResult = setAttentionFlag(taskInstance) 395 if(actionResult.error) 396 return fail(field:"task", code:actionResult.error.code) 397 } 398 def submit_andComplete = { 399 actionResult = complete(taskInstance) 400 if(actionResult.error) 401 return fail(field:"task", code:actionResult.error.code) 402 } 403 404 switch (params.submitAction) { 405 case "submit_default": 406 break 407 case "submit_andSetAttentionFlag": 408 submit_andSetAttentionFlag() 409 break 410 case "submit_andComplete": 411 submit_andComplete() 412 break 413 default: 414 break 415 } // switch. 416 if(result.error) 417 return result 418 } // params.submitAction 419 390 420 // Success. 391 421 return result
Note: See TracChangeset
for help on using the changeset viewer.