Fix assigned repository rows in task display

Closes SCI-1340.
This commit is contained in:
Luka Murn 2017-06-09 13:50:13 +02:00
parent 5ac0ed4505
commit 90ca6d9a76

View file

@ -148,7 +148,11 @@ class RepositoryDatatable < AjaxDatatablesRails::Base
)
.where(repository: @repository)
@assigned_rows = @my_module.repository_rows if @my_module
if @my_module
@assigned_rows = @my_module
.repository_rows
.where(repository: @repository)
end
# Make mappings of custom columns, so we have same id for every column
i = 5