]> source.dussan.org Git - redmine.git/commitdiff
Merged r3912 from trunk.
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 19 Aug 2010 04:30:53 +0000 (04:30 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 19 Aug 2010 04:30:53 +0000 (04:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3962 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb
app/controllers/issues_controller.rb

index 6e5634dbc0babd664810148d3de2ccacd6ac6a44..c00b6ba42b3eb90abea2c5f3f8bbbc3edb090681 100644 (file)
@@ -218,6 +218,10 @@ class ApplicationController < ActionController::Base
     end
   end
 
+  def back_url
+    params[:back_url] || request.env['HTTP_REFERER']
+  end
+
   def redirect_back_or_default(default)
     back_url = CGI.unescape(params[:back_url].to_s)
     if !back_url.blank?
index 8b5d73fa3a80d5b3eddf1bb4f2e6a9fa3cdd7dff..d73dfebfe81ba2b2ad9439637b01a98b7eb7f47f 100644 (file)
@@ -349,7 +349,7 @@ class IssuesController < ApplicationController
     
     @priorities = IssuePriority.all.reverse
     @statuses = IssueStatus.find(:all, :order => 'position')
-    @back = params[:back_url] || request.env['HTTP_REFERER']
+    @back = back_url
     
     render :layout => false
   end