Fix bug.
This commit is contained in:
parent
f3fed596ee
commit
5488b7c561
|
@ -158,8 +158,8 @@
|
|||
<div class="control-group big-group">
|
||||
<label class="control-label muted"><%= t("personal_plugin_template.member_profile") %></label>
|
||||
<div class="controls">
|
||||
<% members = !@plugin_template.member_profile.nil? ? @plugin_template.member_profile.to_a : [] %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'plugin_template[member_profile_id][]', email_members: members,index:'0',select_name:'member_profile_id'} %>
|
||||
<% members = !@plugin_template.member_profile_id.nil? ? MemberProfile.where(:id.in=>Array(@plugin_template.member_profile_id)).to_a : [] %>
|
||||
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'plugin_template[member_profile_id][]', email_members: members,index:'0',select_name:'member_profile_id'} %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue