From 9b608af145dd3eed5ec2df55ec8d6f85b76ad7ca Mon Sep 17 00:00:00 2001 From: Johannes Schlier Date: Tue, 20 Dec 2022 11:12:09 +0100 Subject: [PATCH] [BUGFIX] Handle deleted workspace records --- Classes/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Util.php b/Classes/Util.php index 0c9ddacfc1..e5e1616a12 100644 --- a/Classes/Util.php +++ b/Classes/Util.php @@ -114,7 +114,7 @@ public static function isDraftRecord(string $table, int $uid): bool $isWorkspaceRecord = false; if ((ExtensionManagementUtility::isLoaded('workspaces')) && (BackendUtility::isTableWorkspaceEnabled($table))) { - $record = BackendUtility::getRecord($table, $uid, 'pid, t3ver_state'); + $record = BackendUtility::getRecord($table, $uid, 'pid, t3ver_state', '', false); if ($record['pid'] == '-1' || $record['t3ver_state'] > 0) { $isWorkspaceRecord = true;