Ignore:
Timestamp:
Oct 22, 2009, 8:26:09 PM (14 years ago)
Author:
gav
Message:

Add Department domain class, controller, views and demo data.
Add costCode and department attributes to SystemSection? and regen non-detailed controller and views, adjust detailed views to suite.

File:
1 edited

Legend:

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

    r118 r162  
    2727        if(systemSectionInstance) {
    2828            try {
    29                 systemSectionInstance.delete()
     29                systemSectionInstance.delete(flush:true)
    3030                flash.message = "SystemSection ${params.id} deleted"
    3131                redirect(action:list)
     
    7777        else {
    7878            flash.message = "SystemSection not found with id ${params.id}"
    79             redirect(action:edit,id:params.id)
     79            redirect(action:list)
    8080        }
    8181    }
Note: See TracChangeset for help on using the changeset viewer.