mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 07:05:57 +08:00
Fix repository exports for snapshots of deleted repository rows [SCI-11346]
This commit is contained in:
parent
c41b641af4
commit
cb22d76183
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ class RepositoryCsvExport
|
|||
when -1, -2
|
||||
next
|
||||
when -3
|
||||
csv_row << (repository.is_a?(RepositorySnapshot) ? row.parent.code : row.code)
|
||||
csv_row << row.code
|
||||
when -4
|
||||
csv_row << row.name
|
||||
when -5
|
||||
|
|
|
@ -109,7 +109,7 @@ class RepositoryXlsxExport
|
|||
when -1, -2
|
||||
next
|
||||
when -3
|
||||
row_data << (repository.is_a?(RepositorySnapshot) ? row.parent.code : row.code)
|
||||
row_data << row.code
|
||||
when -4
|
||||
row_data << row.name
|
||||
when -5
|
||||
|
|
Loading…
Add table
Reference in a new issue