Project

General

Profile

Don't see the page navigation links.

Added by Keunwoo LEE over 3 years ago

Hi.

When there are less than 500 issues, the page navigation link is shown as below,

but when there are more than 500 issues, the page navigation link is not shown as below.

Is there any way to fix it?


Replies (3)

RE: Don't see the page navigation links. - Added by Go MAEDA over 3 years ago

You can change the behavior by increasing the number embedded in app/controllers/issues_controller.rb. See the following example.

diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index e2cc1505e..abd9ca497 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -478,10 +478,10 @@ class IssuesController < ApplicationController
       retrieve_query_from_session
       if @query
         @per_page = per_page_option
-        limit = 500
+        limit = 1000
         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 < 1000
             @issue_position = idx + 1
             @issue_count = issue_ids.size
           end

RE: Don't see the page navigation links. - Added by Keunwoo LEE over 3 years ago

Go MAEDA wrote:

You can change the behavior by increasing the number embedded in app/controllers/issues_controller.rb. See the following example.

[...]

Thank you very much. Works fine.

    (1-3/3)