This commit is contained in:
BoHung Chiu 2022-08-23 21:22:06 +08:00
parent f3fed596ee
commit 5488b7c561
1 changed files with 2 additions and 2 deletions

View File

@ -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>