summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-17 11:35:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-17 11:35:42 +0000
commitd8e4a8fb320625474e20901b4070763bd697807a (patch)
tree8012a67044ef6f463a4e07b256acc956ff226d36 /app/controllers/timelog_controller.rb
parentc17ec1643c005036870b45c7b496bbbb3a9784be (diff)
downloadredmine-d8e4a8fb320625474e20901b4070763bd697807a.tar.gz
redmine-d8e4a8fb320625474e20901b4070763bd697807a.zip
Use #per_page instead of #items_per_page.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11425 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index b24888f4b..a6f160fa0 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -55,7 +55,7 @@ class TimelogController < ApplicationController
@entries = scope.all(
:include => [:project, :activity, :user, {:issue => :tracker}],
:order => sort_clause,
- :limit => @entry_pages.items_per_page,
+ :limit => @entry_pages.per_page,
:offset => @entry_pages.offset
)
@total_hours = scope.sum(:hours).to_f