移出成员时,删除项目后没有关联删除而引起的400问题

This commit is contained in:
huang 2015-12-11 13:48:52 +08:00
parent fed989753a
commit f2b8335912
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@
<% end %>
<!--被管理员移出项目-->
<% if ma.forge_message_type == "RemoveFromProject" %>
<% unless ma.project.nil? %>
<ul class="homepageNewsList fl">
<li class="homepageNewsPortrait fl">
<a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(User.find(ma.forge_message_id)), :width => "30", :height => "30"), user_path(ma.forge_message_id) %></a>
@ -87,6 +88,7 @@
</div>
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
</ul>
<% end %>
<% end %>
<!--邀请加入项目-->
<% if ma.forge_message_type == "ProjectInvite" %>