Merge pull request #7712 from rekonder/aj_SCI_10891

Fix import for do not import option [SCI-10891]
This commit is contained in:
ajugo 2024-07-15 13:35:59 +02:00 committed by GitHub
commit 668e3b0851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -188,7 +188,7 @@ export default {
this.$emit(
'generatePreview',
this.selectedItems.filter((item) => item.key !== 'do_not_import')
this.selectedItems
);
return true;
}

View file

@ -49,6 +49,8 @@ module RepositoryImportParser
when '-1'
@columns << nil
@name_index = index
when 'do_not_import'
@columns << nil
else
@columns << @repository_columns.where(data_type: Extends::REPOSITORY_IMPORTABLE_TYPES)
.preload(Extends::REPOSITORY_IMPORT_COLUMN_PRELOADS)