|
|
|
@ -84,10 +84,12 @@ module Redmine
|
|
|
|
|
|
|
|
|
|
def save_attachments(attachments, author=User.current)
|
|
|
|
|
# 清除临时文件
|
|
|
|
|
if attachments
|
|
|
|
|
tempAttach = attachments[:dummy]
|
|
|
|
|
if tempAttach && tempAttach[:file]
|
|
|
|
|
attachments.delete(:dummy)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if attachments.is_a?(Hash)
|
|
|
|
|
attachments = attachments.stringify_keys
|
|
|
|
|