Ignore:
Timestamp:
Oct 22, 2009, 8:23:14 AM (14 years ago)
Author:
gav
Message:

Add costCode attribute to AssetType? and regen controller and views.

File:
1 edited

Legend:

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

    r118 r160  
    2727        if(assetTypeInstance) {
    2828            try {
    29                 assetTypeInstance.delete()
     29                assetTypeInstance.delete(flush:true)
    3030                flash.message = "AssetType ${params.id} deleted"
    3131                redirect(action:list)
     
    7777        else {
    7878            flash.message = "AssetType 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.