Update archives_controller.rb
This commit is contained in:
parent
24f3bdc94e
commit
ea20843488
|
@ -334,8 +334,7 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
||||||
end
|
end
|
||||||
if cat_type=='id'
|
if cat_type=='id'
|
||||||
categories_temp = ModuleApp.where(:key => "archive").first.categories
|
categories_temp = ModuleApp.where(:key => "archive").first.categories
|
||||||
categories = categories_temp.where(_id: categories)
|
categories = categories_temp.select{|cat| categories.include? cat.id.to_s}
|
||||||
puts categories.inspect
|
|
||||||
end
|
end
|
||||||
categories_sort = []
|
categories_sort = []
|
||||||
all_categories_id.each do |cat_id|
|
all_categories_id.each do |cat_id|
|
||||||
|
|
Loading…
Reference in New Issue