Ignore:
Timestamp:
Jan 28, 2011, 10:04:40 PM (14 years ago)
Author:
gav
Message:

Domain change on TaskProcedure and MaintenanceAction, continue task procedure rework.

File:
1 edited

Legend:

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

    r760 r762  
    9999            taskProcedureInstance.properties = params
    100100
    101             def toBeDeleted = taskProcedureInstance.maintenanceActions.findAll {it._deleted}
     101            def toBeDeleted = taskProcedureInstance.maintenanceActions.findAll {it.deleted}
    102102            if(toBeDeleted) {
    103103                taskProcedureInstance.maintenanceActions.removeAll(toBeDeleted)
     
    134134    def save = {
    135135        def taskProcedureInstance = new TaskProcedure(params)
    136         def taskInstance = Task.get(params.parentTask.id)
     136        def taskInstance = Task.get(params.linkedTask.id)
    137137
    138138        if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save(flush: true)) {
Note: See TracChangeset for help on using the changeset viewer.