@ -163,7 +163,7 @@ class FilesController < ApplicationController
end
# 返回制定资源类型的资源列表
# 返回指定资源类型的资源列表
# added by nwb
def getattachtype
sort_init 'created_on', 'desc'
@ -84,9 +84,11 @@ module Redmine
def save_attachments(attachments, author=User.current)
# 清除临时文件
tempAttach = attachments[:dummy]
if tempAttach && tempAttach[:file]
attachments.delete(:dummy)
if attachments
if attachments.is_a?(Hash)