diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-17 11:35:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-17 11:35:42 +0000 |
commit | d8e4a8fb320625474e20901b4070763bd697807a (patch) | |
tree | 8012a67044ef6f463a4e07b256acc956ff226d36 /app/controllers/timelog_controller.rb | |
parent | c17ec1643c005036870b45c7b496bbbb3a9784be (diff) | |
download | redmine-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.rb | 2 |
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 |