]> source.dussan.org Git - redmine.git/commitdiff
Fixed: DoubleRenderError introduced by #7996.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 5 Apr 2011 11:38:45 +0000 (11:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 5 Apr 2011 11:38:45 +0000 (11:38 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5318 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/timelog_controller.rb

index 882000817517671d8d32d0a0b353fb73d8be12c0..2b752c674a92193ef660bebf177e30e95dd3dcc7 100644 (file)
@@ -195,9 +195,11 @@ class TimelogController < ApplicationController
             }
             format.api  { render_validation_errors(t) }
           end
+          return
         end
       rescue ::ActionController::RedirectBackError
         redirect_to :action => 'index', :project_id => @projects.first
+        return
       end
     end