Skip to content

Commit 9b608af

Browse files
jschlierdkd-kaehm
authored andcommitted
[BUGFIX] Handle deleted workspace records
1 parent ed3ce05 commit 9b608af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static function isDraftRecord(string $table, int $uid): bool
114114
$isWorkspaceRecord = false;
115115

116116
if ((ExtensionManagementUtility::isLoaded('workspaces')) && (BackendUtility::isTableWorkspaceEnabled($table))) {
117-
$record = BackendUtility::getRecord($table, $uid, 'pid, t3ver_state');
117+
$record = BackendUtility::getRecord($table, $uid, 'pid, t3ver_state', '', false);
118118

119119
if ($record['pid'] == '-1' || $record['t3ver_state'] > 0) {
120120
$isWorkspaceRecord = true;

0 commit comments

Comments
 (0)