From 9610ec9efe3134cd42482fccd8e9e550cb1ba79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Wed, 29 Apr 2015 14:56:02 +0200 Subject: [PATCH] Wrong sorting by Modified column #387 --- app/views/dmsf/_dir.html.erb | 2 +- app/views/dmsf/_dir_trash.html.erb | 4 ++-- app/views/dmsf/_url.html.erb | 8 +++++--- app/views/dmsf/_url_trash.html.erb | 6 ++++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/views/dmsf/_dir.html.erb b/app/views/dmsf/_dir.html.erb index 4ccf038e..dbce36b0 100644 --- a/app/views/dmsf/_dir.html.erb +++ b/app/views/dmsf/_dir.html.erb @@ -110,5 +110,5 @@ 0 0 -<%= subfolder.updated_at.to_i if subfolder %> +<%= subfolder.modified.to_i if subfolder %> 0 \ No newline at end of file diff --git a/app/views/dmsf/_dir_trash.html.erb b/app/views/dmsf/_dir_trash.html.erb index 9159d9b4..4f311976 100644 --- a/app/views/dmsf/_dir_trash.html.erb +++ b/app/views/dmsf/_dir_trash.html.erb @@ -34,7 +34,7 @@ - <%= format_time(subfolder.updated_at) %> + <%= format_time(subfolder.modified) if subfolder %> @@ -56,5 +56,5 @@ 0 0 -<%= subfolder.updated_at.to_i %> +<%= subfolder.modified.to_i %> 0 \ No newline at end of file diff --git a/app/views/dmsf/_url.html.erb b/app/views/dmsf/_url.html.erb index 0b4712b5..15699e0b 100644 --- a/app/views/dmsf/_url.html.erb +++ b/app/views/dmsf/_url.html.erb @@ -1,7 +1,9 @@ <%#= +# encoding: utf-8 +# # Redmine plugin for Document Management System "Features" # -# Copyright (C) 2011-14 Karel Pičman +# Copyright (C) 2011-15 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -55,5 +57,5 @@ 1 - - +link.updated_at.to_i + \ No newline at end of file diff --git a/app/views/dmsf/_url_trash.html.erb b/app/views/dmsf/_url_trash.html.erb index b8ff5a6b..be7ebe7e 100644 --- a/app/views/dmsf/_url_trash.html.erb +++ b/app/views/dmsf/_url_trash.html.erb @@ -1,4 +1,6 @@ <%#= +# encoding: utf-8 +# # Redmine plugin for Document Management System "Features" # # Copyright (C) 2011-15 Karel Pičman @@ -50,5 +52,5 @@ 1 - - +link.updated_at.to_i + \ No newline at end of file