Update archive_files_controller.rb
This commit is contained in:
parent
95a775c7ac
commit
56563df6e1
|
@ -15,7 +15,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
|
|||
key.slice! 'sort_number-'
|
||||
end
|
||||
keys.each_with_index do |key,index|
|
||||
archivecategory = ArchiveCategory.all.where(category_id: key)
|
||||
archivecategory = ArchiveCategory.where(category_id: key)
|
||||
archivecategory.first.sort_number = values[index]
|
||||
archivecategory.first.save!
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue