Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] MoveAllowTableOnStandardPagesToTCAConfigurationRector should trim table names #4477

Open
tillhoerner opened this issue Feb 14, 2025 · 0 comments · May be fixed by #4478
Open

[BUG] MoveAllowTableOnStandardPagesToTCAConfigurationRector should trim table names #4477

tillhoerner opened this issue Feb 14, 2025 · 0 comments · May be fixed by #4478
Labels

Comments

@tillhoerner
Copy link

Minimal PHP Code Causing Issue

Given the ext_tables.php

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_table_one, tx_table_two');

the rule will create

Configuration/TCA/tx_table_one.php

<?php

$GLOBALS['TCA']['tx_table_one']['ctrl']['security']['ignorePageTypeRestriction'] = true;

which is valid, but also

Configuration/TCA/ tx_table_two.php

<?php

$GLOBALS['TCA'][' tx_table_two']['ctrl']['security']['ignorePageTypeRestriction'] = true;

which has a leading space in the configuration and filename

Applied rules

MoveAllowTableOnStandardPagesToTCAConfigurationRector

Expected Behaviour

The table name should be trimmed.

Package Version

3.0.1

PHP Version

8.3.16

TYPO3 Version

13.4.5

Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant