mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
Fix repository export job for snapshots [SCI-9494]
This commit is contained in:
parent
b30d5577ac
commit
144c3ce12f
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class RepositoryZipExportJob < ZipExportJob
|
||||||
|
|
||||||
# Override
|
# Override
|
||||||
def fill_content(dir, params)
|
def fill_content(dir, params)
|
||||||
repository = Repository.find(params[:repository_id])
|
repository = RepositoryBase.find(params[:repository_id])
|
||||||
# Fetch rows in the same order as in the currently viewed datatable
|
# Fetch rows in the same order as in the currently viewed datatable
|
||||||
if params[:my_module_id]
|
if params[:my_module_id]
|
||||||
rows = if repository.is_a?(RepositorySnapshot)
|
rows = if repository.is_a?(RepositorySnapshot)
|
||||||
|
|
Loading…
Reference in a new issue