TYPO3 Core: Issues
http://forge.typo3.org/
http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?1705866169
2024-05-23T12:05:09Z
TYPO3 Forge
Redmine
Bug #103885 (New): foreign_match_fields is ignored in flexforms in Typo3 12
http://forge.typo3.org/issues/103885
2024-05-23T12:05:09Z
Georgi Mateev
<p>The inline TCA type (also tested for the new file type) does not respect the configuration foreign_match_fields.fieldname when in Flexform context. Up to TYPO3 v11 it would respect it and store the value in the sys_file_reference table. After updating to TYPO3 v12 it does not respect it anymore and writes the name of the TCA Field instead.</p>
<p>Example:<br /><pre><code class="xml syntaxhl" data-language="xml"><span class="nt"><settings.thumbnailImages></span>
<span class="nt"><label></span>LLL:EXT:sg_vimeo/Resources/Private/Language/locallang.xlf:flexform.thumbnailImages
<span class="nt"></label></span>
<span class="nt"><description></span>
LLL:EXT:sg_vimeo/Resources/Private/Language/locallang.xlf:flexform.thumbnailImages.description
<span class="nt"></description></span>
<span class="nt"><config></span>
<span class="nt"><type></span>inline<span class="nt"></type></span>
<span class="nt"><foreign_table></span>sys_file_reference<span class="nt"></foreign_table></span>
<span class="nt"><foreign_field></span>uid_foreign<span class="nt"></foreign_field></span>
<span class="nt"><foreign_table_field></span>tablenames<span class="nt"></foreign_table_field></span>
<span class="nt"><foreign_label></span>uid_local<span class="nt"></foreign_label></span>
<span class="nt"><foreign_sortby></span>sorting_foreign<span class="nt"></foreign_sortby></span>
<span class="nt"><foreign_selector></span>uid_local<span class="nt"></foreign_selector></span>
<span class="nt"><foreign_selector_fieldTcaOverride</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><config></span>
<span class="nt"><appearance></span>
<span class="nt"><elementBrowserType></span>file<span class="nt"></elementBrowserType></span>
<span class="nt"><elementBrowserAllowed></span>jpg,png,svg,jpeg,gif,webp<span class="nt"></elementBrowserAllowed></span>
<span class="nt"></appearance></span>
<span class="nt"></config></span>
<span class="nt"></foreign_selector_fieldTcaOverride></span>
<span class="nt"><foreign_match_fields</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><fieldname></span>tx_sgvimeo_thumbnail_image<span class="nt"></fieldname></span>
<span class="nt"></foreign_match_fields></span>
<span class="nt"><filter</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><userFunc></span>TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter->filterInlineChildren
<span class="nt"></userFunc></span>
<span class="nt"><parameters></span>
<span class="nt"><allowedFileExtensions></span>jpg,png,svg,jpeg,gif,webp<span class="nt"></allowedFileExtensions></span>
<span class="nt"><disallowedFileExtensions></disallowedFileExtensions></span>
<span class="nt"></parameters></span>
<span class="nt"></filter></span>
<span class="nt"><appearance</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><useSortable></span>1<span class="nt"></useSortable></span>
<span class="nt"><headerThumbnail></span>
<span class="nt"><field></span>uid_local<span class="nt"></field></span>
<span class="nt"><height></span>45m<span class="nt"></height></span>
<span class="nt"></headerThumbnail></span>
<span class="nt"><enabledControls></span>
<span class="nt"><info></span>1<span class="nt"></info></span>
<span class="nt"><new></span>0<span class="nt"></new></span>
<span class="nt"><dragdrop></span>1<span class="nt"></dragdrop></span>
<span class="nt"><sort></span>1<span class="nt"></sort></span>
<span class="nt"><hide></span>1<span class="nt"></hide></span>
<span class="nt"><delete></span>1<span class="nt"></delete></span>
<span class="nt"></enabledControls></span>
<span class="nt"></appearance></span>
<span class="nt"><overrideChildTca></span>
<span class="nt"><columns</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><uid_local</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><config</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><appearance</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><elementBrowserType></span>file<span class="nt"></elementBrowserType></span>
<span class="nt"><elementBrowserAllowed></span>jpg,png,svg,jpeg,gif<span class="nt"></elementBrowserAllowed></span>
<span class="nt"></appearance></span>
<span class="nt"></config></span>
<span class="nt"></uid_local></span>
<span class="nt"><crop</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><config</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><cropVariants</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><medium</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><disabled></span>1<span class="nt"></disabled></span>
<span class="nt"></medium></span>
<span class="nt"><small</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><disabled></span>1<span class="nt"></disabled></span>
<span class="nt"></small></span>
<span class="nt"><extrasmall</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><disabled></span>1<span class="nt"></disabled></span>
<span class="nt"></extrasmall></span>
<span class="nt"></cropVariants></span>
<span class="nt"></config></span>
<span class="nt"></crop></span>
<span class="nt"></columns></span>
<span class="nt"><types</span> <span class="na">type=</span><span class="s">"array"</span><span class="nt">></span>
<span class="nt"><numIndex</span> <span class="na">index=</span><span class="s">"2"</span><span class="nt">></span>
<span class="nt"><showitem></span>
--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette
<span class="nt"></showitem></span>
<span class="nt"></numIndex></span>
<span class="nt"></types></span>
<span class="nt"></overrideChildTca></span>
<span class="nt"></config></span>
<span class="nt"></settings.thumbnailImages></span>
</code></pre></p>
<p>Expected result in the database:<br />tx_sgvimeo_thumbnail_image</p>
<p>Actual result in the database:<br />settings.thumbnailImages</p>
<p>You can test this with our sgalinski/sg-vimeo extension in version 7.1.11 when trying to set a custom thumbnail image.</p>
<p>This looks like a bug in TYPO3 12 or an undocumented breaking change.</p>
Bug #103883 (New): View generated in LinkBrowserController missed PageTS configuration
http://forge.typo3.org/issues/103883
2024-05-23T09:39:11Z
Nicole Cordes
typo3@cordes.co
<p>Given:</p>
<p>- a package having following files:</p>
<p><strong>Configuration/page.tsconfig</strong> with content <em>templates.typo3/cms-backend.123 = EXT:foo/Resources/Private/TemplateOverrides</em> <br /><strong>Resources/Private/TemplateOverrides/Templates/LinkBrowser/Page.html</strong> with content <em>Foo</em><br /><strong>Configuration/PageTs/PageTs.typoscript</strong> with content <em>templates.typo3/cms-backend.123 ></em></p>
<p>The given PageTS is used on the root page (in page settings).</p>
<p>Expectation:</p>
<p>- LinkBrowser in Redirect record (pageUid = 0) shows "Foo" in the page browser as the overrides template is used<br />- any other LinkBrowser (in page context) shows default page tree in browser</p>
<p>Actual:</p>
<p>- the reset of the overrides template isn't triggered. "Foo" is always shown.</p>
<p>The view is rendered in typo3/cms-backend/Classes/View/BackendViewFactory.php:73 expecting an "id" parameter in the request. This parameter isn't available in a "wizard/link/browse" context as the page id is provided in P[pid]=161 parameter</p>