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
|
||||
if cat_type=='id'
|
||||
categories_temp = ModuleApp.where(:key => "archive").first.categories
|
||||
categories = categories_temp.where(_id: categories)
|
||||
puts categories.inspect
|
||||
categories = categories_temp.select{|cat| categories.include? cat.id.to_s}
|
||||
end
|
||||
categories_sort = []
|
||||
all_categories_id.each do |cat_id|
|
||||
|
|
Loading…
Reference in New Issue