Fix repository export job for snapshots [SCI-9494]

This commit is contained in:
Oleksii Kriuchykhin 2023-10-09 15:40:19 +02:00
parent b30d5577ac
commit 144c3ce12f

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)