parent
6c516780ab
commit
93c25e65b0
|
@ -15,7 +15,6 @@ 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)
|
||||||
puts archivecategory.inspect
|
|
||||||
if !(values[index].empty?)
|
if !(values[index].empty?)
|
||||||
archivecategory.first.update_attributes(sort_number: values[index].to_i)
|
archivecategory.first.update_attributes(sort_number: values[index].to_i)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue