Fix repository export to support file columns [SCI-2079]

This commit is contained in:
Oleksii Kriuchykhin 2018-03-13 10:40:27 +01:00
parent 3b9ad2f86f
commit 21c07371c9
2 changed files with 5 additions and 1 deletions

View file

@ -388,7 +388,7 @@ class RepositoriesController < ApplicationController
else
cell = row.repository_cells
.find_by(repository_column_id: c_id)
cell ? cell.value.data : nil
cell ? cell.value.formatted : nil
end
end
csv << csv_row

View file

@ -18,4 +18,8 @@ class RepositoryAssetValue < ApplicationRecord
def formatted
asset.file_file_name
end
def data
asset.file_file_name
end
end