Changeset 206 for trunk


Ignore:
Timestamp:
Dec 1, 2009, 3:48:46 AM (15 years ago)
Author:
gav
Message:

Switch Task to the Grails provided attach() from refresh().

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r204 r206  
    408408        }
    409409        else {
    410             render(view:'edit',model:[taskInstance:result.taskInstance.refresh()])
     410            render(view:'edit',model:[taskInstance:result.taskInstance.attach()])
    411411        }
    412412
  • trunk/grails-app/services/TaskService.groovy

    r204 r206  
    202202
    203203            if(!result.taskInstance)
    204                 return fail('task', "task.notFound")
     204                return fail('id', "task.notFound")
    205205
    206206            // Optimistic locking check.
Note: See TracChangeset for help on using the changeset viewer.