Project

General

Profile

Actions

Bug #93273

closed

Custom PageTs not loaded if a content object is deleted ina workspace

Added by Victor Manuel Grande Escanciano almost 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-01-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When editing a content element or page in a workspace and approving it, an email is sent to a list of recipients. When this happens, the function TYPO3\CMS\Workspaces\Notification\StateChangeNotification:notifyStateChange retrieves the element record, page uid and email configuration (pageTSConfig).

As long as the element was changed and not deleted everything works perfectly, but if the element was deleted, the retrieved element in the following line (77) is an empty array:
_ $elementRecord = (array)BackendUtility::getRecord($elementTable, $elementUid);_

If the retrieved element record is an empty array, the page uid is always 0 and the custom pageTsConfig is not found.

I think that the problem lies in the BackendUtility::getRecord function and the parameter $useDeleteClause.

Behaviour for end user:

ACTUAL:
Default Workspaces Email is sent after approval

EXPECTED:
Custom Email should be sent after approval(defined in custom pageTsConfig)


Files

workspace_bug.png (162 KB) workspace_bug.png $elementRecord returns an empty array Victor Manuel Grande Escanciano, 2021-01-12 11:05
Actions #1

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72950

Actions #2

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73084

Actions #3

Updated by Benni Mack almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF