diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin_public_body_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/admin_public_body_controller.rb b/app/controllers/admin_public_body_controller.rb index 79fa98475..a43be17ce 100644 --- a/app/controllers/admin_public_body_controller.rb +++ b/app/controllers/admin_public_body_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: admin_public_body_controller.rb,v 1.7 2008-02-21 16:15:45 francis Exp $ +# $Id: admin_public_body_controller.rb,v 1.8 2008-03-02 23:46:51 francis Exp $ class AdminPublicBodyController < ApplicationController layout "admin" @@ -54,7 +54,9 @@ class AdminPublicBodyController < ApplicationController end def destroy - PublicBody.find(params[:id]).destroy + public_body = PublicBody.find(params[:id]) + public_body.tag_string = "" + public_body.destroy flash[:notice] = "PublicBody was successfully destroyed." redirect_to admin_url('body/list') end |