Update journal_papers_controller.rb

This commit is contained in:
chiu 2019-11-01 22:16:46 +08:00
parent 240b91c36c
commit fa512ef4e1
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Admin::JournalPapersController < OrbitMemberController
@journals.each do |key,value|
@journals[key] = value.group_by{|v| [get_level_type(v),get_author_type(v),get_paper_type(v),get_publication_date(v)]}
@journals[key].each do |key1,value1|
if value1.length==1
if value1.length<=1
@journals[key].delete key1
end
end