diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index dcad123..4c57273 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -54,7 +54,11 @@ class Admin::JournalPapersController < OrbitMemberController @journals[key].delete key1 end end + if @journals[key].length==0 + @journals.delete key + end end + end end def index