fix error
This commit is contained in:
parent
9cffdaeb63
commit
209903f35d
|
@ -16,6 +16,7 @@ class ArchivesController < ApplicationController
|
|||
end
|
||||
def index
|
||||
params = OrbitHelper.params
|
||||
@@total_pages = 1
|
||||
if !params['title'].nil?
|
||||
files_by_category = ArchiveFile.where(is_hidden: false).order_by(:created_at => "desc").group_by(&:category)
|
||||
categories = files_by_category.keys
|
||||
|
@ -74,7 +75,6 @@ class ArchivesController < ApplicationController
|
|||
}
|
||||
end
|
||||
end
|
||||
@@total_pages = 1
|
||||
else
|
||||
if OrbitHelper.page_data_count > 0
|
||||
OrbitHelper.set_page_data_count 0
|
||||
|
@ -387,4 +387,4 @@ class ArchivesController < ApplicationController
|
|||
def self.get_total_pages
|
||||
@@total_pages
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue