mirror of
https://github.com/redmine/redmine.git
synced 2026-06-15 22:11:47 +02:00
Replace hardcoded issues count check with limit variable in IssuesController#retrieve_previous_and_next_issue_ids (#39380).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22415 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -522,7 +522,7 @@ class IssuesController < ApplicationController
|
||||
limit = 500
|
||||
issue_ids = @query.issue_ids(:limit => (limit + 1))
|
||||
if (idx = issue_ids.index(@issue.id)) && idx < limit
|
||||
if issue_ids.size < 500
|
||||
if issue_ids.size < limit
|
||||
@issue_position = idx + 1
|
||||
@issue_count = issue_ids.size
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user