Merge pull request #7721 from rekonder/aj_SCI_10884

Fix cell value validation [SCI-10884]
This commit is contained in:
ajugo 2024-07-17 10:46:34 +02:00 committed by GitHub
commit adb7115312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,6 +245,7 @@ module RepositoryImportParser
if @preview
repository_cell = repository_row.repository_cells.build(value: cell_value, repository_column: cell_value.repository_cell.repository_column)
repository_cell.validate
repository_cell.value.validate
repository_cell.id = SecureRandom.uuid.gsub(/[a-zA-Z-]/, '') unless cell_value.repository_cell.id.present? # ID required for preview with serializer
return repository_cell
else