mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix cell value validation [SCI-10884]
This commit is contained in:
parent
c02653a45a
commit
40bbbf4863
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ module RepositoryImportParser
|
||||||
if @preview
|
if @preview
|
||||||
repository_cell = repository_row.repository_cells.build(value: cell_value, repository_column: cell_value.repository_cell.repository_column)
|
repository_cell = repository_row.repository_cells.build(value: cell_value, repository_column: cell_value.repository_cell.repository_column)
|
||||||
repository_cell.validate
|
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
|
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
|
return repository_cell
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue