From e451f8da66b00cc6c99e278cd1509ba7e0b7b858 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 2d0b9c978d..b21fb805f8 100644 --- a/Classes/IndexQueue/RecordMonitor.php +++ b/Classes/IndexQueue/RecordMonitor.php @@ -98,7 +98,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) );