diff --git a/app/views/admin/journal_papers/merge.html.erb b/app/views/admin/journal_papers/merge.html.erb index c6e6279..1da69be 100644 --- a/app/views/admin/journal_papers/merge.html.erb +++ b/app/views/admin/journal_papers/merge.html.erb @@ -46,8 +46,6 @@ <% else %> <% i=0 %> <% journals.each do |k,v| %> - <% j=0 %> - <% puts ['hello',j,k,v] %> <% len1 = v.length %> <%= k[0] %> @@ -62,22 +60,19 @@ <%= k[3] %> <% v.each_with_index do |journal_child,index1| %> - <% len2 = v.length %> <%= journal_child %> - <% if len2!=(i+1) %> + <% if len1!=index1 %> <% end %> <% end %> - <% if len1!=(j+1) %> + <% if len1!=(i+1) %> <% end %> - <% j=j+1 - i =i+1 - %> + <% i =i+1 %> <% end %> <% end %>