From dab268306bd60451ced53e0712aecf8ff7d709cb Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Thu, 20 Jul 2017 13:39:23 +0200 Subject: [PATCH] #48 thumbnails --- lib/redmine_dmsf/patches/attachable_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_dmsf/patches/attachable_patch.rb b/lib/redmine_dmsf/patches/attachable_patch.rb index 44da87fd..bdc4867e 100644 --- a/lib/redmine_dmsf/patches/attachable_patch.rb +++ b/lib/redmine_dmsf/patches/attachable_patch.rb @@ -31,7 +31,7 @@ module RedmineDmsf module InstanceMethods def has_attachments_with_has_attachments_dms? - has_attachments_without_has_attachments_dms? || self.dmsf_files.any? + has_attachments_without_has_attachments_dms? || (defined?(self.dmsf_files) && self.dmsf_files.any?) end end