Commit 3a77b918 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Georg Ringer

[BUGFIX] Use correct action code to fetch workspace comments

With #89483 some constants to have named DataHandler actions were
introduced. Unfortunately, a location in Workspace was forgotten which
made it impossible to load comments from a changed record.

This patch updates the SELECT query to use the correct action number
again.

Resolves: #93897
Related: #89483
Releases: master, 10.4
Change-Id: I62c857f1284ffc8577c726dd04c76ebbc96307f0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68758Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent ace65ef4
......@@ -26,6 +26,7 @@ use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Resource\FileReference;
use TYPO3\CMS\Core\Resource\ProcessedFile;
use TYPO3\CMS\Core\SysLog\Action\Database as DatabaseAction;
use TYPO3\CMS\Core\Utility\DiffUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\MathUtility;
......@@ -429,7 +430,7 @@ class RemoteServer
->where(
$queryBuilder->expr()->eq(
'action',
$queryBuilder->createNamedParameter(6, \PDO::PARAM_INT)
$queryBuilder->createNamedParameter(DatabaseAction::UPDATE, \PDO::PARAM_INT)
),
$queryBuilder->expr()->eq(
'details_nr',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment