summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
index 344ff0866..7da2841d1 100644
--- a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
+++ b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
@@ -78,6 +78,7 @@ module Redmine
end
if attachments.is_a?(Array)
attachments.each do |attachment|
+ next unless attachment.is_a?(Hash)
a = nil
if file = attachment['file']
next unless file.size > 0