Skip to content

Add the default date-with-time configuration if missing#16902

Merged
Zeegaan merged 1 commit intov14/devfrom
v14/fix/missing-date-time-configuration
Aug 12, 2024
Merged

Add the default date-with-time configuration if missing#16902
Zeegaan merged 1 commit intov14/devfrom
v14/fix/missing-date-time-configuration

Conversation

@kjac
Copy link
Copy Markdown
Contributor

@kjac kjac commented Aug 12, 2024

Prerequisites

  • I have added steps to test this contribution in the description below

Description

In V13 (and below), the default "Date Picker with time" data-type seems to have a stored configuration:

image

But in fact, this is just a default value on the server-side implementation of DateTimeConfiguration:

image

The database contains no configuration data for ID -36 (Constants.DataTypes.DateTime):

image

This works in V13, but not in V14, because the V14 UI honours the fallback/default behavior mentioned on the data-type configuration:

image

In effect, this means that unless the default "Date Picker with time" has been explicitly saved in V13 (and thus the configuration has been persisted in the database), any upgraded "Date Picker with time" property will no longer have the time UI in V14 - they will appear and function as plan date editors.

The content property data, however, still contains the time component, so... we only need to ensure the correct configuration of the default data-type. And that's what this PR does😄

Testing this PR

Upgrade a default V13 database and verify that the data-type with ID -36 has the correct configuration:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants