Project

General

Profile

Actions

Bug #99469

open

Record selector behaves differently for pages depending on where you click (left or right column)

Added by Sybille Peters over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2023-01-05
Due date:
% Done:

0%

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

Description

The Records Selector may return different results for pages, depending on where you click (either left column or right column). Apparently either a page id is returned or a "pages_ID". In the situation described below, the page ID then resolves to a tt_content id ("tt_content_ID").

This was originally reported for gridelements and can be reproduced with the latest EA version, see https://github.com/CodersCare/gridelements_EA/issues/510

I have create a minimal example where this is also reproducible: https://github.com/sypets/sypets_example_shortcut_records_pages

What is affected

If the configuration for the tt_content.records field (or something else?) has been changed to accept pages as well:

$GLOBALS['TCA']['tt_content']['columns']['records']['config']['allowed'] .= ',pages';

Reproduce:

either with gridelements or my example extension:

1. Create a content element with type "shortcut"
2. In the form, for records, click on "Page" (not "Page Content" !)
3. In the "Record selector" select a page in the left column (not in the right column) by clicking on the link symbol on the right.

What is now written to records is something like this:

select uid,records from tt_content where uid=454;
+-----+----------------+
| uid | records        |
+-----+----------------+
| 454 | tt_content_491 |
+-----+----------------+

In case no corresponding tt_content element exists for the page id, nothing is written to the field.

Cross checking

Weirdly enough, doing the same thing with pages.shortcut is not a problem, but here there are not several table types which can be used, it is always pages.

Screenshots

Screenshots for testing with gridelments:

Record selector

Animated gif


Files

gridelements_shortcut_animated.gif (1.06 MB) gridelements_shortcut_animated.gif Animated gif Sybille Peters, 2023-01-05 14:03
gridelements_shortcut_record_selector4.png (341 KB) gridelements_shortcut_record_selector4.png Record selector Sybille Peters, 2023-01-05 14:03
record_selector_link.png (9.3 KB) record_selector_link.png Sybille Peters, 2023-01-05 14:06
Actions #1

Updated by Sybille Peters over 1 year ago

  • Subject changed from Record selector behaves differently depending for pages depending on where you click (left or right column) to Record selector behaves differently for pages depending on where you click (left or right column)
Actions

Also available in: Atom PDF