From e95881cf5ca5755d97afb61af6862e836d45365b Mon Sep 17 00:00:00 2001 From: pawelpawlik Date: Fri, 29 May 2026 09:18:11 +0200 Subject: [PATCH] IBX-11818: added fallback to null value when key 'timestamp' not exists in $value->data array --- .../Content/FieldValue/Converter/DateAndTimeConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php b/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php index 6c31e799b9..adaf6faafe 100644 --- a/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php +++ b/src/lib/Persistence/Legacy/Content/FieldValue/Converter/DateAndTimeConverter.php @@ -32,7 +32,7 @@ public function toStorageValue(FieldValue $value, StorageFieldValue $storageFiel { // @todo: One should additionally store the timezone here. This could // be done in a backwards compatible way, I think… - $storageFieldValue->dataInt = ($value->data !== null ? $value->data['timestamp'] : null); + $storageFieldValue->dataInt = ($value->data['timestamp'] ?? null); $storageFieldValue->sortKeyInt = (int)$value->sortKey; }