diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-26 20:12:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-26 20:12:20 +0000 |
commit | 43fd27fd0ce4111501c36a6ef162aed61bf3318c (patch) | |
tree | 6a805a37c06baaba9a1c2935f32b22e6bca2cafb /app/controllers | |
parent | f3bcb705f74622afae785d9df793a0bbed3a11d3 (diff) | |
download | redmine-43fd27fd0ce4111501c36a6ef162aed61bf3318c.tar.gz redmine-43fd27fd0ce4111501c36a6ef162aed61bf3318c.zip |
Show last update datetime (last attachment added) on document list (#4232).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3095 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/documents_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb index c9eecf4f7..9d9c5a7d0 100644 --- a/app/controllers/documents_controller.rb +++ b/app/controllers/documents_controller.rb @@ -28,7 +28,7 @@ class DocumentsController < ApplicationController documents = @project.documents.find :all, :include => [:attachments, :category] case @sort_by when 'date' - @grouped = documents.group_by {|d| d.created_on.to_date } + @grouped = documents.group_by {|d| d.updated_on.to_date } when 'title' @grouped = documents.group_by {|d| d.title.first.upcase} when 'author' |