diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index f484ed82e..a4f3de3d1 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -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 diff --git a/app/views/issues/_list.rhtml b/app/views/issues/_list.rhtml index 43a41cd77..9d4ef7dd8 100644 --- a/app/views/issues/_list.rhtml +++ b/app/views/issues/_list.rhtml @@ -1,4 +1,5 @@ <% form_tag({}) do -%> +<%= hidden_field_tag 'back_url', url_for(params) %>
<%= link_to image_tag('toggle_check.png'), {}, :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', |
---|