Ignore:
Timestamp:
Jan 26, 2011, 5:35:35 AM (14 years ago)
Author:
gav
Message:

Domain change, frist draft of creating taskProcedure dynamic form.

File:
1 edited

Legend:

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

    r758 r760  
    9898            }
    9999            taskProcedureInstance.properties = params
     100
     101            def toBeDeleted = taskProcedureInstance.maintenanceActions.findAll {it._deleted}
     102            if(toBeDeleted) {
     103                taskProcedureInstance.maintenanceActions.removeAll(toBeDeleted)
     104            }
     105
    100106            if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save(flush: true)) {
    101107                flash.message = "TaskProcedure ${params.id} updated"
Note: See TracChangeset for help on using the changeset viewer.