parent
56563df6e1
commit
e3923bb5ff
|
@ -16,8 +16,10 @@ class Admin::ArchiveFilesController < OrbitAdminController
|
||||||
end
|
end
|
||||||
keys.each_with_index do |key,index|
|
keys.each_with_index do |key,index|
|
||||||
archivecategory = ArchiveCategory.where(category_id: key)
|
archivecategory = ArchiveCategory.where(category_id: key)
|
||||||
archivecategory.first.sort_number = values[index]
|
if !(values[index].empty?)
|
||||||
archivecategory.first.save!
|
archivecategory.first['sort_number'] = values[index]_.to_i
|
||||||
|
archivecategory.first.save!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
puts e
|
puts e
|
||||||
|
|
Loading…
Reference in New Issue