diff --git a/CHANGELOG.md b/CHANGELOG.md index b8a38ea72..95dd7cd9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Fix a bug: event reserved places compute error - Fix a bug: event canceled places error - Fix a bug: 403 error when manager edit an event +- Fix a bug: unable to show projects next page button - [TODO DEPLOY] `rails fablab:setup:build_places_cache` ## v6.0.11 2023 July 21 diff --git a/app/services/project_service.rb b/app/services/project_service.rb index 0e6abf32b..be85c3cd2 100644 --- a/app/services/project_service.rb +++ b/app/services/project_service.rb @@ -47,6 +47,6 @@ class ProjectService records = records.includes(:users, :project_image) records = records.page(params[:page]) if paginate - { total: records.count, projects: records } + { total: records.total_count, projects: records } end end