Update journal_papers_controller.rb
This commit is contained in:
parent
94e77d6dcb
commit
b32496f447
|
@ -35,7 +35,7 @@ class Admin::JournalPapersController < OrbitMemberController
|
||||||
@journals[key] = value.group_by{|v| [get_level_type(v),get_author_type(v),get_paper_type(v),get_publication_date(v)]}
|
@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|
|
@journals[key].each do |key1,value1|
|
||||||
if value1.length==1
|
if value1.length==1
|
||||||
value.delete key1
|
@journals[key].delete key1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue