Merge pull request #6393 from okriuchykhin/ok_SCI_9494

Fix repository export job for snapshots [SCI-9494]
This commit is contained in:
Alex Kriuchykhin 2023-10-10 09:12:49 +02:00 committed by GitHub
commit 472e573011
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ class RepositoryZipExportJob < ZipExportJob
# Override
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
if params[:my_module_id]
rows = if repository.is_a?(RepositorySnapshot)