Ignore:
Timestamp:
Feb 3, 2011, 12:15:42 AM (14 years ago)
Author:
gav
Message:

Domain change, add TaskProcedure updated and created fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/controllers/TaskProcedureDetailedController.groovy

    r770 r772  
    55
    66    def filterService
     7    def authService
    78
    89    def index = { redirect(action:list,params:params) }
     
    110111            }
    111112            taskProcedureInstance.properties = params
     113            taskProcedureInstance.lastUpdatedBy = authService.currentUser
     114            taskProcedureInstance.lastUpdated = new Date() // Required to trigger version increment.
    112115
    113116            // Gaps in the html index's can be created by adding 2 items and removing the first one.
     
    173176    def save = {
    174177        def taskProcedureInstance = new TaskProcedure(params)
     178        taskProcedureInstance.createdBy = authService.currentUser
     179        taskProcedureInstance.lastUpdatedBy = authService.currentUser
    175180        def taskInstance = Task.get(params.linkedTask.id)
    176181
Note: See TracChangeset for help on using the changeset viewer.