Update archive_files_controller.rb

fix error
This commit is contained in:
chiu 2019-09-19 19:10:47 +08:00
parent e3923bb5ff
commit 0dce0e1cc8
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
keys.each_with_index do |key,index|
archivecategory = ArchiveCategory.where(category_id: key)
if !(values[index].empty?)
archivecategory.first['sort_number'] = values[index]_.to_i
archivecategory.first['sort_number'] = values[index].to_i
archivecategory.first.save!
end
end