diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-01-27 20:42:19 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-01-27 20:42:19 +0000 |
commit | 2fc7897044399f8f0861f670b48beb9e88afba00 (patch) | |
tree | 33637b8b8f7871bba2ca895afbcbbdfd777d3afb /app/helpers/sort_helper.rb | |
parent | 10994e902779aba086f58a75abfbaf7fe10eb2f2 (diff) | |
download | redmine-2fc7897044399f8f0861f670b48beb9e88afba00.tar.gz redmine-2fc7897044399f8f0861f670b48beb9e88afba00.zip |
Fixes Issue sorting in a project, broken by #2317
Issues were sorting but the project id wasn't being added so the
IssuesController would return all issues (cross-project).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2324 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/sort_helper.rb')
-rw-r--r-- | app/helpers/sort_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index 85ae8151c..b0c72504b 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -120,6 +120,9 @@ module SortHelper # don't reuse params if filters are present url_options = params.has_key?(:set_filter) ? sort_options : params.merge(sort_options) + # Add project_id to url_options + url_options = url_options.merge(:project_id => params[:project_id]) if params.has_key?(:project_id) + link_to_remote(caption, {:update => "content", :url => url_options, :method => :get}, {:href => url_for(url_options)}) + |