diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/artifacts_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb index 7424b521cba..54bc3b5c125 100644 --- a/app/controllers/projects/artifacts_controller.rb +++ b/app/controllers/projects/artifacts_controller.rb @@ -17,8 +17,10 @@ class Projects::ArtifactsController < Projects::ApplicationController def index finder = ArtifactsFinder.new(@project, artifacts_params) - @artifacts = finder.execute.page(params[:page]).per(MAX_PER_PAGE) - @total_size = @artifacts.total_size + all_artifacts = finder.execute + + @artifacts = all_artifacts.page(params[:page]).per(MAX_PER_PAGE) + @total_size = all_artifacts.total_size end def destroy |