Skip to content

Commit b94a3c9

Browse files
spoonerWebdkd-kaehm
authored andcommitted
[BUGFIX] Add record to index queue when published
# What this pr does Checks if action is "publish" and add record to index queue. Removed "swap" action as it's removed with https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92206-RemoveWorkspaceSwappingOfElements.html. # How to test 1. Create a workspace 2. Switch to workspace and create page 3. Page is not in index queue -> correct 4. Publish the page to LIVE workspace 5. Page is not in index queue -> incorrect Fixes: #3718
1 parent c4ad9fc commit b94a3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/IndexQueue/RecordMonitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function processCmdmap_postProcess(
9898

9999
// track publish / swap events for records (workspace support)
100100
// command "version"
101-
if ($command === 'version' && $value['action'] === 'swap') {
101+
if ($command === 'version' && $value['action'] === 'publish') {
102102
$this->eventDispatcher->dispatch(
103103
new VersionSwappedEvent($uid, $table),
104104
);

0 commit comments

Comments
 (0)