Fix total number of records in task repository [SCI-1381]

This commit is contained in:
Oleksii Kriuchykhin 2017-06-19 16:45:57 +02:00
parent 14429a270c
commit 9a9f8b9c41

View file

@ -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