Changeset 762 for branches/features/taskProcedureRework/grails-app/controllers/TaskProcedureDetailedController.groovy
- Timestamp:
- Jan 28, 2011, 10:04:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/controllers/TaskProcedureDetailedController.groovy
r760 r762 99 99 taskProcedureInstance.properties = params 100 100 101 def toBeDeleted = taskProcedureInstance.maintenanceActions.findAll {it. _deleted}101 def toBeDeleted = taskProcedureInstance.maintenanceActions.findAll {it.deleted} 102 102 if(toBeDeleted) { 103 103 taskProcedureInstance.maintenanceActions.removeAll(toBeDeleted) … … 134 134 def save = { 135 135 def taskProcedureInstance = new TaskProcedure(params) 136 def taskInstance = Task.get(params. parentTask.id)136 def taskInstance = Task.get(params.linkedTask.id) 137 137 138 138 if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save(flush: true)) {
Note: See TracChangeset
for help on using the changeset viewer.