Merge pull request #670 from Ducz0r/lm-sci-1340

Fix assigned repository rows in task display [SCI-1340]
This commit is contained in:
Luka Murn 2017-06-13 08:55:55 +02:00 committed by GitHub
commit 28f78a0c6c

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