]> source.dussan.org Git - redmine.git/commitdiff
Fixed a test failure.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Oct 2009 18:51:10 +0000 (18:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Oct 2009 18:51:10 +0000 (18:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2992 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index bcdf10dfffbe8b5b01def985619e5074eab470c5..c981244e107eed0a686dca7c10409f2bead768f1 100644 (file)
@@ -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