Ignore:
Timestamp:
Dec 4, 2009, 2:05:27 PM (14 years ago)
Author:
gav
Message:

Replace personService.currentUser() with the more groovy personService.getCurrentUser() so that personService.currentUser can be called.

File:
1 edited

Legend:

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

    r208 r216  
    4646
    4747            if(taskInstance.save()) {
    48                 def taskModification = new TaskModification(person: personService.currentUser(),
     48                def taskModification = new TaskModification(person: personService.currentUser,
    4949                                                        taskModificationType: TaskModificationType.get(1),
    5050                                                        task: taskInstance)
     
    119119            def result = [:]
    120120            result.entryInstance = new Entry(params)
    121             result.entryInstance.enteredBy = personService.currentUser()
     121            result.entryInstance.enteredBy = personService.currentUser
    122122
    123123            if(result.entryInstance.validate()) {
     
    143143
    144144                    // Create the "Started" task modification, this provides the "Actual started date".
    145                     def taskModification = new TaskModification(person: personService.currentUser(),
     145                    def taskModification = new TaskModification(person: personService.currentUser,
    146146                                                            taskModificationType: TaskModificationType.get(2),
    147147                                                            task: taskInstance)
     
    215215                return fail()
    216216
    217             def taskModification = new TaskModification(person:personService.currentUser(),
     217            def taskModification = new TaskModification(person:personService.currentUser,
    218218                                                    taskModificationType: TaskModificationType.get(3),
    219219                                                    task: result.taskInstance)
     
    254254
    255255                if(result.taskInstance.save()) {
    256                     def taskModification = new TaskModification(person:personService.currentUser(),
     256                    def taskModification = new TaskModification(person:personService.currentUser,
    257257                                                            taskModificationType: TaskModificationType.get(4),
    258258                                                            task: result.taskInstance)
     
    303303
    304304                if(result.taskInstance.save()) {
    305                     def taskModification = new TaskModification(person:personService.currentUser(),
     305                    def taskModification = new TaskModification(person:personService.currentUser,
    306306                                                            taskModificationType: TaskModificationType.get(5),
    307307                                                            task: result.taskInstance)
     
    352352
    353353                if(result.taskInstance.save()) {
    354                     def taskModification = new TaskModification(person:personService.currentUser(),
     354                    def taskModification = new TaskModification(person:personService.currentUser,
    355355                                                            taskModificationType: TaskModificationType.get(6),
    356356                                                            task: result.taskInstance)
     
    400400
    401401                if(result.taskInstance.save()) {
    402                     def taskModification = new TaskModification(person:personService.currentUser(),
     402                    def taskModification = new TaskModification(person:personService.currentUser,
    403403                                                            taskModificationType: TaskModificationType.get(7),
    404404                                                            task: result.taskInstance)
     
    448448
    449449                if(result.taskInstance.save()) {
    450                     def taskModification = new TaskModification(person:personService.currentUser(),
     450                    def taskModification = new TaskModification(person:personService.currentUser,
    451451                                                            taskModificationType: TaskModificationType.get(8),
    452452                                                            task: result.taskInstance)
     
    496496
    497497                if(result.taskInstance.save()) {
    498                     def taskModification = new TaskModification(person:personService.currentUser(),
     498                    def taskModification = new TaskModification(person:personService.currentUser,
    499499                                                            taskModificationType: TaskModificationType.get(9),
    500500                                                            task: result.taskInstance)
Note: See TracChangeset for help on using the changeset viewer.