Preserve RepositoryTimeValue date component on import [SCI-10983]

This commit is contained in:
Martin Artnik 2024-07-18 15:56:24 +02:00
parent 79036cd3e8
commit 6282478361

View file

@ -241,6 +241,12 @@ module RepositoryImportParser
when RepositoryStatusValue
repository_status_item_id = cell_value[:repository_status_item_id]
repository_cell.value.update_data!(repository_status_item_id, @user, preview: @preview)
when RepositoryTimeValue
repository_cell.value.update_data!(
repository_cell.value.data.change(hour: cell_value.data.hour, min: cell_value.data.min),
@user,
preview: @preview
)
else
sanitized_cell_value_data = sanitize_cell_value_data(cell_value.data)
repository_cell.value.update_data!(sanitized_cell_value_data, @user, preview: @preview)