summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-03 21:35:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-03 21:35:00 +0000
commit86a52eaedf2bc7d5e597f0ce5d06187d7e487c78 (patch)
tree4965ca4973a80e0b8f03b4cc0e63360c697505a0 /app/controllers/issues_controller.rb
parentce45b03732e78d45a7968811fb39b5365d0387f6 (diff)
downloadredmine-86a52eaedf2bc7d5e597f0ce5d06187d7e487c78.tar.gz
redmine-86a52eaedf2bc7d5e597f0ce5d06187d7e487c78.zip
Makes .find_ids return integers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8490 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 7b3684c85..6433acc5f 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -287,9 +287,9 @@ private
sort_update(@query.sortable_columns, 'issues_index_sort')
limit = 500
issue_ids = @query.issue_ids(:order => sort_clause, :limit => (limit + 1))
- if (idx = issue_ids.index(@issue.id.to_s)) && idx < limit
- @prev_issue_id = issue_ids[idx - 1].to_i if idx > 0
- @next_issue_id = issue_ids[idx + 1].to_i if idx < (issue_ids.size - 1)
+ if (idx = issue_ids.index(@issue.id)) && idx < limit
+ @prev_issue_id = issue_ids[idx - 1] if idx > 0
+ @next_issue_id = issue_ids[idx + 1] if idx < (issue_ids.size - 1)
end
end
end