diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-29 18:51:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-29 18:51:10 +0000 |
commit | 279e81eb9288015d37884b66c1195a7835fd5640 (patch) | |
tree | 2aedc08609101fb7791aafc6920f3e87ac340e5f /app | |
parent | 92ec35e6570bffea85ba2669146b7c4fd63f109d (diff) | |
download | redmine-279e81eb9288015d37884b66c1195a7835fd5640.tar.gz redmine-279e81eb9288015d37884b66c1195a7835fd5640.zip |
Fixed a test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2992 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index bcdf10dff..c981244e1 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -110,9 +110,10 @@ class ProjectsController < ApplicationController flash[:notice] = l(:notice_successful_create) redirect_to :controller => 'admin', :action => 'projects' end - end + end + rescue ActiveRecord::RecordNotFound + redirect_to :controller => 'admin', :action => 'projects' end - # Show @project def show |