diff --git a/app/controllers/admin/archive_files_controller.rb b/app/controllers/admin/archive_files_controller.rb index 59b217c..49413c9 100644 --- a/app/controllers/admin/archive_files_controller.rb +++ b/app/controllers/admin/archive_files_controller.rb @@ -8,6 +8,7 @@ class Admin::ArchiveFilesController < OrbitAdminController end end def save_categories_order + begin keys = params['data_keys'] values = params['data_values'] keys.each do |key| @@ -18,6 +19,9 @@ class Admin::ArchiveFilesController < OrbitAdminController archivecategory.first.sort_number = values[index] archivecategory.first.save! end + rescue => e + puts e + end render :json => {}.to_json end def index