From 22fde3c03ee2dccbf18dc94caf3103ea15627dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=B6ffler?= Date: Wed, 24 Jan 2024 11:58:47 +0100 Subject: [PATCH] [BUGFIX] Add record to index queue when published Closes: #3718 --- Classes/IndexQueue/RecordMonitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/IndexQueue/RecordMonitor.php b/Classes/IndexQueue/RecordMonitor.php index 62e32e747c..2ac16eddeb 100644 --- a/Classes/IndexQueue/RecordMonitor.php +++ b/Classes/IndexQueue/RecordMonitor.php @@ -100,7 +100,7 @@ public function processCmdmap_postProcess( // track publish / swap events for records (workspace support) // command "version" - if ($command === 'version' && $value['action'] === 'swap') { + if ($command === 'version' && in_array($value['action'], ['publish', 'swap']) { $this->eventDispatcher->dispatch( new VersionSwappedEvent($uid, $table) );