From 6a3891a45863d9cfd9b9ad8ebb56ba801864b613 Mon Sep 17 00:00:00 2001 From: Vadym Honcharuk Date: Fri, 29 Nov 2024 14:04:20 +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 58b9588e9..728330149 100644 --- a/src/module-elasticsuite-indices/Model/IndexStatusProvider.php +++ b/src/module-elasticsuite-indices/Model/IndexStatusProvider.php @@ -114,6 +114,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((string) $indexName, $indexKey) !== false) {