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/controllers/TaskDetailedController.groovy

    r214 r216  
    2828        if(!FilterUtils.isFilterApplied(params)) {
    2929            def taskInstanceList = []
    30             def personInstance = personService.currentUser()
     30            def personInstance = personService.currentUser
    3131
    3232            if(params.quickSearch == "searchMyTodays") {
     
    6767        if(!FilterUtils.isFilterApplied(params)) {
    6868            def taskInstanceList = []
    69             def personInstance = personService.currentUser()
     69            def personInstance = personService.currentUser
    7070
    7171            if(params.quickSearch == "searchMyTodays") {
     
    112112        if(!FilterUtils.isFilterApplied(params)) {
    113113            def taskInstanceList = []
    114             def personInstance = personService.currentUser()
     114            def personInstance = personService.currentUser
    115115
    116116            if(params.quickSearch == "budgetUnplanned") {
     
    416416
    417417        // Default leadPerson to current user, unless supplied in params.
    418         taskInstance.leadPerson = personService.currentUser()
     418        taskInstance.leadPerson = personService.currentUser
    419419        taskInstance.properties = params
    420420        return ['taskInstance': taskInstance]
Note: See TracChangeset for help on using the changeset viewer.