From 9a9f8b9c418538ae312221cd7be9f7a5563ddff5 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 19 Jun 2017 16:45:57 +0200 Subject: [PATCH] Fix total number of records in task repository [SCI-1381] --- app/datatables/repository_datatable.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/datatables/repository_datatable.rb b/app/datatables/repository_datatable.rb index b97db6d95..7f23f9408 100644 --- a/app/datatables/repository_datatable.rb +++ b/app/datatables/repository_datatable.rb @@ -158,6 +158,7 @@ class RepositoryDatatable < AjaxDatatablesRails::Base ) .joins(:created_by) .where(repository: @repository) + return @assigned_rows if params[:assigned] == 'assigned' else @assigned_rows = repository_rows.joins( 'INNER JOIN my_module_repository_rows ON