Skip to content

IBX-11818: added fallback to null value when key 'timestamp' not exists in $value->data array#757

Draft
papcio122 wants to merge 1 commit into
5.0from
IBX-11818_empty_ibexa_datetime-field-causing-error
Draft

IBX-11818: added fallback to null value when key 'timestamp' not exists in $value->data array#757
papcio122 wants to merge 1 commit into
5.0from
IBX-11818_empty_ibexa_datetime-field-causing-error

Conversation

@papcio122
Copy link
Copy Markdown
Contributor

🎫 Issue IBX-11818

Description:

\Ibexa\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter:toStorageValue()
throws an error of a missing array key when the content was created before the field was added to the content type.
Added fallback to null when the data array has no 'timestamp' key

@sonarqubecloud
Copy link
Copy Markdown

@papcio122 papcio122 marked this pull request as draft May 29, 2026 08:06
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.

1 participant