comparison app/controllers/issue_statuses_controller.rb @ 1338:25603efa57b5

Merge from live branch
author Chris Cannam
date Thu, 20 Jun 2013 13:14:14 +0100
parents 433d4f72a19b
children 622f24f53b42 261b3d9a4903
comparison
equal deleted inserted replaced
1209:1b1138f6f55e 1338:25603efa57b5
1 # Redmine - project management software 1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang 2 # Copyright (C) 2006-2012 Jean-Philippe Lang
3 # 3 #
4 # This program is free software; you can redistribute it and/or 4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License 5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2 6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version. 7 # of the License, or (at your option) any later version.
60 else 60 else
61 render :action => 'edit' 61 render :action => 'edit'
62 end 62 end
63 end 63 end
64 64
65 verify :method => :delete, :only => :destroy, :redirect_to => { :action => :index }
66 def destroy 65 def destroy
67 IssueStatus.find(params[:id]).destroy 66 IssueStatus.find(params[:id]).destroy
68 redirect_to :action => 'index' 67 redirect_to :action => 'index'
69 rescue 68 rescue
70 flash[:error] = l(:error_unable_delete_issue_status) 69 flash[:error] = l(:error_unable_delete_issue_status)