Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Prevent hiding children, family, and family request list results due to pagination #398

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/controllers/children_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def index
.order(sort_column + ' ' + sort_direction),
params[:filterrific]
) || return
@children = @filterrific.find.page(params[:page])

@children = @filterrific.find

respond_to do |format|
format.js
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/families_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def index
.order(sort_column + ' ' + sort_direction),
params[:filterrific]
) || return
@families = @filterrific.find.page(params[:page])

@families = @filterrific.find

respond_to do |format|
format.js
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/family_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def new
.order(first_name: :asc),
params[:filterrific]
) || return
@children = @filterrific.find.page(params[:page])
@children = @filterrific.find
end

def create
Expand Down