mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 15:14:33 +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
|
else
|
||||||
cell = row.repository_cells
|
cell = row.repository_cells
|
||||||
.find_by(repository_column_id: c_id)
|
.find_by(repository_column_id: c_id)
|
||||||
cell ? cell.value.data : nil
|
cell ? cell.value.formatted : nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
csv << csv_row
|
csv << csv_row
|
||||||
|
|
|
@ -18,4 +18,8 @@ class RepositoryAssetValue < ApplicationRecord
|
||||||
def formatted
|
def formatted
|
||||||
asset.file_file_name
|
asset.file_file_name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def data
|
||||||
|
asset.file_file_name
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue