label_alt-parts of record titles are displayed rawurlencoded() since TYPO3 7
Since TYPO3 7 there is a bug displaying the record title. This issue contains a test-extension to verify it.
The problem is the record title referenced in label_alt from another table. In TYPO3 6.2 the record title is displayed correctly, in TYPO3 7.6 the label parts from other tables are rawurlencoded.
To verify the issue install the extension and add test records:
INSERT INTO tx_test_a VALUES (1,1,'Äther', 1); INSERT INTO tx_test_b VALUES (1,1,'Äther', 1); INSERT INTO tx_test_c VALUES (1,1,'Äther');
If you open
tx_test_a:1 now, in TYPO3 7.6 the record title is partly rawurlencoded, in TYPO3 6.2 its fine.
As it seems for internal handling (probably in relation to inline editing), formengine needs
rawurlencode() on internal record references:
$result['databaseRow'][$fieldName] = $relationHandler->readyForInterface();
\TYPO3\CMS\Backend\Form\FormDataProvider\TcaRecordTitle::getRecordTitleForGroupType() used to render the displayed title should
rawurldecode() the title.
[BUGFIX] Do not rawurlencode record titles using label_alt and type=group
Do not rawurlencode the label_alt part references of record titles if
they are of type=group as this leads to duplicate encoding.
Reviewed-by: Mathias Schreiber <firstname.lastname@example.org>
Tested-by: Mathias Schreiber <email@example.com>
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Susanne Moog <email@example.com>
Tested-by: Susanne Moog <firstname.lastname@example.org>