Skip to content

Commit

Permalink
[BUGFIX] Handle deleted workspace records
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlier authored and dkd-kaehm committed Feb 2, 2023
1 parent ed3ce05 commit 9b608af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b608af

Please sign in to comment.