Changeset 201


Ignore:
Timestamp:
Nov 30, 2009, 12:30:33 AM (15 years ago)
Author:
gav
Message:

Disable recurring schedule when completing or moving a task to trash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/TaskService.groovy

    r196 r201  
    243243
    244244                if(result.taskInstance.save()) {
     245
     246                    result.taskInstance.taskRecurringSchedule?.enabled = false
     247
    245248                    def taskModification = new TaskModification(person:personService.currentUser(),
    246249                                                            taskModificationType: TaskModificationType.get(4),
    247250                                                            task: result.taskInstance)
     251
    248252                    if(taskModification.save()) {
    249253                        // All went well.
     
    329333
    330334                if(result.taskInstance.save()) {
     335
     336                    result.taskInstance.taskRecurringSchedule?.enabled = false
     337
    331338                    def taskModification = new TaskModification(person:personService.currentUser(),
    332339                                                            taskModificationType: TaskModificationType.get(6),
Note: See TracChangeset for help on using the changeset viewer.