Merge pull request #1035 from okriuchykhin/ok_SCI_2079

Fix repository export to support file columns [SCI-2079]
This commit is contained in:
okriuchykhin 2018-03-13 13:05:43 +01:00 committed by GitHub
commit 9f5513ff3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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