@ -357,10 +357,8 @@ class ProjectsController < ApplicationController
defsettings
defsettings
# 修改查看消息状态
# 修改查看消息状态
applied_messages=ForgeMessage.where("user_id =? and project_id =? and forge_message_type =? and viewed =?",User.current.id,@project,"AppliedProject",0)
applied_messages=ForgeMessage.where("user_id =? and project_id =? and forge_message_type =? and viewed =?",User.current.id,@project,"AppliedProject",0)
applied_messages.eachdo|applied_message|
applied_messages.update_all(:viewed=>true)
applied_message.update_attributes(:viewed=>true)
end
# end
@issue_custom_fields=IssueCustomField.sorted.all
@issue_custom_fields=IssueCustomField.sorted.all
@issue_category||=IssueCategory.new
@issue_category||=IssueCategory.new
@member||=@project.members.new
@member||=@project.members.new
@ -397,6 +395,7 @@ class ProjectsController < ApplicationController