From 7b8f71305c34d7ecde08472002319c08624e7db6 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 14:51:31 +0800 Subject: [PATCH] Update merge.html.erb --- app/views/admin/journal_papers/merge.html.erb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/views/admin/journal_papers/merge.html.erb b/app/views/admin/journal_papers/merge.html.erb index 5152283..d2cc4b2 100644 --- a/app/views/admin/journal_papers/merge.html.erb +++ b/app/views/admin/journal_papers/merge.html.erb @@ -36,9 +36,7 @@ <% if params['mode']=='simple' %> <% journals.each_with_index do |journal,i| %> - <% get_member(journal).each do |member| %> - <%= member.name rescue t('personal_journal.no_input') %> - <% end %> + <%= get_member(journal).collect(&:name).join(', ') rescue t('personal_journal.no_input') %> <% if len!=(i+1) %> @@ -56,9 +54,7 @@ <% end %> <% v.each_with_index do |journal_child,index1| %> - <% get_member(journal_child).each do |member| %> - <%= member.name rescue t('personal_journal.no_input') %> - <% end %> + <%= get_member(journal_child).collect(&:name).join(', ') rescue t('personal_journal.no_input') %> <% if len1!=index1 %>