Update archive_files_controller.rb
This commit is contained in:
parent
2068cd41ef
commit
a03c531212
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue