Project

General

Profile

Actions

Bug #103700

open

Element Browser does not return pages_uid when referencing a page through the tree

Added by Andreas Kiessling 11 days ago. Updated 9 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-04-22
Due date:
% Done:

0%

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

Description

When a page is selected from the Element Browser, the icon in the page tree only returns the uid. The button on the right returns pages_uid.
This becomes problematic when it is used in a db field with multiple allowed tables --> after saving the record the entry with only the uid is dropped.

Can be easily tested with the insert records element, see attached screenshots

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('pages');

Files

clipboard-202404222223-lqkzz.png (291 KB) clipboard-202404222223-lqkzz.png Element Browser screenshot Andreas Kiessling, 2024-04-22 20:23
clipboard-202404222226-bpobk.png (48.9 KB) clipboard-202404222226-bpobk.png DOM Andreas Kiessling, 2024-04-22 20:26
Actions #1

Updated by Andreas Kiessling 11 days ago

Additional hint: the left selector is only displayed when the element browser is launched with the Page button below the db select field.
When it is launched with the button to the right of the select field (and all allowed tables are listed/selectable), the pages records can only be selected in the right frame of the Element Browser

Actions #2

Updated by Gerrit Code Review 9 days 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/+/84018

Actions

Also available in: Atom PDF