]> source.dussan.org Git - redmine.git/commitdiff
Redirect to the current page when using context menu on the issue list (#4184).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Nov 2009 11:35:27 +0000 (11:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Nov 2009 11:35:27 +0000 (11:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3027 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb
app/views/issues/_list.rhtml

index f484ed82eb544f9cad71980fa13248d9f6d730f6..a4f3de3d1f29345f0b2acf0b30f1769e385aa9a3 100644 (file)
@@ -424,7 +424,7 @@ class IssuesController < ApplicationController
     
     @priorities = IssuePriority.all.reverse
     @statuses = IssueStatus.find(:all, :order => 'position')
-    @back = request.env['HTTP_REFERER']
+    @back = params[:back_url] || request.env['HTTP_REFERER']
     
     render :layout => false
   end
index 43a41cd778097975625c4e88b9cd306ee01550a9..9d4ef7dd809fc0d91eae586fb3c84539fd2fbbcd 100644 (file)
@@ -1,4 +1,5 @@
 <% form_tag({}) do -%> 
+<%= hidden_field_tag 'back_url', url_for(params) %>
 <table class="list issues">
     <thead><tr>
         <th><%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;',