Ignore:
Timestamp:
Feb 17, 2010, 9:00:33 PM (15 years ago)
Author:
gav
Message:

Align TaskProcedureDetailedController to match templates, flush and redirect.

File:
1 edited

Legend:

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

    r298 r365  
    5050        if(taskProcedureInstance) {
    5151            try {
    52                 taskProcedureInstance.delete()
     52                taskProcedureInstance.delete(flush:true)
    5353                flash.message = "TaskProcedure ${params.id} deleted"
    5454                redirect(action:list)
     
    105105        else {
    106106            flash.message = "TaskProcedure not found with id ${params.id}"
    107             redirect(action:edit,id:params.id)
     107            redirect(action:list)
    108108        }
    109109    }
Note: See TracChangeset for help on using the changeset viewer.