Update archive_files_controller.rb

This commit is contained in:
chiu 2019-09-16 19:46:22 +08:00
parent 2068cd41ef
commit a03c531212
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
if ArchiveSortOrder.count == 0
ArchiveSortOrder.new('sort_order' => false).save
end
if !params['order_asc'].nil?
if !(params['order_asc'].nil?)
if params['order_asc'] == 'true'
ArchiveSortOrder.first.update_attributes('sort_order' => true)
elsif params['order_asc'] == 'false'