From cb3d040b4774c197b6aadb0954c608dc0c0bd26f Mon Sep 17 00:00:00 2001 From: orakili Date: Mon, 29 Jul 2024 02:01:14 +0000 Subject: [PATCH] fix: entity dates.... Refs: RW-1001 --- html/modules/custom/reliefweb_entities/src/DocumentTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/modules/custom/reliefweb_entities/src/DocumentTrait.php b/html/modules/custom/reliefweb_entities/src/DocumentTrait.php index 20d5f4944..d3f366cf3 100644 --- a/html/modules/custom/reliefweb_entities/src/DocumentTrait.php +++ b/html/modules/custom/reliefweb_entities/src/DocumentTrait.php @@ -353,7 +353,7 @@ public function getReferencedEntityIds($field) { * @see Drupal\reliefweb_entities\DocumentInterface::createDate() */ public function createDate($date) { - if (is_scalar($date) && $date !== '') { + if (is_scalar($date) && $date === '') { return NULL; } $date = is_numeric($date) ? '@' . $date : $date;