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