Project

General

Profile

Actions

Bug #102069

open

Constants not present on root page in workspace

Added by Philipp Kitzberger about 1 year ago. Updated 4 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2023-09-29
Due date:
% Done:

0%

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

Description

It seems as if the usage of a constants within a "marker" (e.g. ###PAGE_TSCONFIG_IDLIST###) is not working when the root page of a site is being workspaced.

TCA:

$GLOBALS['TCA']['pages']['columns']['fe_group']['config']['foreign_table_where'] = 'AND fe_groups.pid IN (###CURRENT_PID###,###PAGE_TSCONFIG_IDLIST###)';

PageTS:
TCEFORM.pages.fe_group.PAGE_TSCONFIG_IDLIST = {$pid.userSource}

Site config:
settings:
  pid:
    userSource: 123

Here's the SQL error you get after saving the workspace change.

SELECT `fe_groups`.`uid`, `fe_groups`.`pid`, `fe_groups`.`title`, `fe_groups`.`hidden` FROM `fe_groups`, `pages` WHERE (fe_groups.pid IN (321,)) ...

As you can see CURRENT_PID is being processed correctly, but PAGE_TSCONFIG_IDLIST is just empty, hence the SQL error.

This is generally working. But not for a workspace'd root page! I think it's due to the fact that this page has now a different ID for which no site config exists. When a add a dummy site config with that ID as a rootPageId, then the constants are present!

Hint: the workaround from #93746 doesn't work here.

Actions #1

Updated by Garvin Hicking 4 months ago

  • Category set to Workspaces
Actions

Also available in: Atom PDF