fix pagination bug

This commit is contained in:
alan 2016-03-30 15:09:06 +08:00
parent 3c9f88c767
commit 1f0f7708c6
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ module Redmine
if block_given? if block_given?
yield text, parameters, options yield text, parameters, options
else else
if args[2][:path].nil? if args[2].nil? || args[2][:path].nil?
link_to text, params.merge(parameters), options link_to text, params.merge(parameters), options
else else
page = "&page=" + parameters[:page].to_s unless parameters[:page].nil? page = "&page=" + parameters[:page].to_s unless parameters[:page].nil?