From 7aea5e706909f9caa382468bc6604e5b8a20e17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=B6ffler?= Date: Wed, 24 Jan 2024 12:03:14 +0100 Subject: [PATCH] [TASK] Remove "swap" action as "publish" is only one --- 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 b21fb805f8..4b2ac428be 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' && in_array($value['action'], ['publish', 'swap']) { + if ($command === 'version' && $value['action'] === 'publish') { $this->eventDispatcher->dispatch( new VersionSwappedEvent($uid, $table) );