fix error
This commit is contained in:
parent
e0d2b5ec51
commit
12067be7f3
|
@ -6,6 +6,7 @@ class ArchivesController < ApplicationController
|
|||
ArchiveSortOrder.new('sort_order' => false).save
|
||||
end
|
||||
params = OrbitHelper.params
|
||||
@@total_pages = 1
|
||||
if !params['title'].nil?
|
||||
files_by_cateogry = ArchiveFile.where(is_hidden: false).group_by(&:category)
|
||||
categories = files_by_cateogry.keys
|
||||
|
@ -56,7 +57,6 @@ class ArchivesController < ApplicationController
|
|||
}
|
||||
end
|
||||
end
|
||||
@@total_pages = 1
|
||||
else
|
||||
if OrbitHelper.page_data_count > 0
|
||||
OrbitHelper.set_page_data_count 0
|
||||
|
|
Loading…
Reference in New Issue