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