From fa512ef4e1303db04c6588aafc612cec978c6ac6 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 22:16:46 +0800 Subject: [PATCH] Update journal_papers_controller.rb --- app/controllers/admin/journal_papers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index 9e9f8c5..d878883 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -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