Redirect to the current page when using context menu on the issue list (#4184).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3027 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-11-11 11:35:27 +00:00
parent 858f5cbf07
commit 58103680bd
2 changed files with 2 additions and 1 deletions

View 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

View 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;',