判断org.org_act_id是否为空

This commit is contained in:
ouyangxuhua 2015-12-29 16:00:12 +08:00
parent 77e0f0cd08
commit dd88742b78
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
<% end %>
<% end %>
<% if act.container_type == 'OrgSubfield' %>
<% if act.org_act_type == 'Message' %>
<% if act.org_act_type == 'Message' and act.org_act_id %>
<% message = Message.find(act.org_act_id) %>
<% if !message.board.course_id.nil? %>
<%= render :partial => 'org_course_message', :locals => {:activity => message,:user_activity_id =>act.id} %>