From 1310b130f6df41e7b585d9691cd69048d96d4dc2 Mon Sep 17 00:00:00 2001 From: Vadym Honcharuk Date: Mon, 2 Dec 2024 17:50:41 +0200 Subject: [PATCH] [Indices] Fix #3449, handling a false value of Index updated date --- .../Model/IndexStatusProvider.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/module-elasticsuite-indices/Model/IndexStatusProvider.php b/src/module-elasticsuite-indices/Model/IndexStatusProvider.php index 74b1e140f..6ca065186 100644 --- a/src/module-elasticsuite-indices/Model/IndexStatusProvider.php +++ b/src/module-elasticsuite-indices/Model/IndexStatusProvider.php @@ -117,6 +117,11 @@ public function getIndexStatus($indexName, $alias): string */ private function isRebuilding(string $indexName, $indexDate): bool { + if ($indexDate === false) { + // If $indexDate is false, we cannot rebuild. + return false; + } + if (!empty($this->workingIndexers)) { foreach (array_keys($this->workingIndexers) as $indexKey) { if (strpos($indexName, $indexKey) !== false) {