mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Fix repository export to support file columns [SCI-2079]
This commit is contained in:
parent
3b9ad2f86f
commit
21c07371c9
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -18,4 +18,8 @@ class RepositoryAssetValue < ApplicationRecord
|
|||
def formatted
|
||||
asset.file_file_name
|
||||
end
|
||||
|
||||
def data
|
||||
asset.file_file_name
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue