Merge pull request #7424 from G-Chubinidze/gc_SCI_10534

When exporting inventory items, do not convert smart annotation tags to text [SCI-10534]
This commit is contained in:
aignatov-bio 2024-05-09 10:57:56 +02:00 committed by GitHub
commit f81d9185ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 11 deletions

View file

@ -59,14 +59,11 @@ module RepositoryCsvExport
else else
cell = row.repository_cells.find_by(repository_column_id: c_id) cell = row.repository_cells.find_by(repository_column_id: c_id)
csv_row << if cell csv_row << if cell
if cell.value_type == 'RepositoryAssetValue' && handle_file_name_func if cell.value_type == 'RepositoryAssetValue' && handle_file_name_func
handle_file_name_func.call(cell.value.asset) handle_file_name_func.call(cell.value.asset)
else else
SmartAnnotations::TagToText.new( cell.value.export_formatted
user, repository.team, cell.value.export_formatted
).text
end
end end
end end
end end

View file

@ -64,9 +64,7 @@ module RepositoryXlsxExport
if cell.value_type == 'RepositoryAssetValue' && handle_file_name_func if cell.value_type == 'RepositoryAssetValue' && handle_file_name_func
handle_file_name_func.call(cell.value.asset) handle_file_name_func.call(cell.value.asset)
else else
SmartAnnotations::TagToText.new( cell.value.export_formatted
user, repository.team, cell.value.export_formatted
).text
end end
end end
end end