Bug #95572
closedTCA selectSingle with foreign_table and selicon_field does not find images
100%
Description
If you install the current master with the extension styleguide have a look at table tx_styleguide_elements_select, field select_single_12 the images do not get displayed. While we where doing automatic screenshots for TYPO3 11.4 this still worked. See screenshots attached.
Files
Updated by Georg Ringer about 3 years ago
Some more debugging information:
while static select icons have a syntax like 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg'
, icons of releations using ctrl|selicon_field
have a path like /fileadmin/styleguide/telephone_box.jpg
which is created in
AbstractItemProvider
if ($isReferenceField) { $references = $fileRepository->findByRelation($foreignTable, $iconFieldName, $foreignRow['uid']); if (is_array($references) && !empty($references)) { $icon = reset($references); $icon = $icon->getPublicUrl(); } }
later in \TYPO3\CMS\Backend\Form\Utility\FormEngineUtility::getIconHtml
the line
$absoluteFilePath = GeneralUtility::getFileAbsFileName($icon);
will transform the fileadmin path into an empty string and the icon can be retrieved
Updated by Oliver Bartsch over 2 years ago
- Related to Bug #97442: Icon form Backend Layout Record are broken in Sidesettings added
Updated by Nikita Hovratov almost 2 years ago
- Related to Task #95027: Always generate absolute FAL URLs in the backend added
Updated by Nikita Hovratov almost 2 years ago
Found causing commit through git bisect: #95027
Updated by Nikita Hovratov almost 2 years ago
The difference is the prefixed slash in /fileadmin/styleguide/telephone_box.jpg
Without the slash it works again: fileadmin/styleguide/telephone_box.jpg
Updated by Gerrit Code Review almost 2 years ago
- Status changed from Accepted 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/+/77208
Updated by Gerrit Code Review almost 2 years ago
Patch set 2 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/+/77208
Updated by Gerrit Code Review almost 2 years ago
Patch set 3 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/+/77208
Updated by Gerrit Code Review almost 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77431
Updated by Nikita Hovratov almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 322ae93cbec6bc90f0048f11ccad669e156ddfff.
Updated by Benni Mack almost 2 years ago
- Status changed from Resolved to Closed