mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Preserve RepositoryTimeValue date component on import [SCI-10983]
This commit is contained in:
parent
79036cd3e8
commit
6282478361
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue