Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

File field with allowLanguageSynchronization #608

Open ursbraem opened 11 months ago

ursbraem commented 11 months ago

Versions: TYPO3 12.4.8 with Mask 8.3.7

We have an asset field to be used for images. With the option allowLanguageSynchronization there is the following error when editing the field in the Backend:

image

As opposed, the error is not thrown when using the "media" field.

ScreenShot 2023-11-29 at 11 54 31@2x

Maybe a bug or just a configuration issue?

nhovratov commented 11 months ago

This is interesting, looks like a TYPO3 bug. If you set allowLanguageSynchronization for a core field, Mask generates a columnsOverride section. TYPO3 just looks through all fields, if there is at least one with allowLanguageSynchronization set. But it does not apply the Content element specific overrides.

If you want this option for ALL image fields, you can use TCA overrides. It does not work for a specific Content Element so to seem.

$GLOBALS['TCA']['tt_content']['columns']['image']['config']['behaviour']['allowLanguageSynchronization'] = true

ursbraem commented 11 months ago

Thanks Nikita! Should I do something?

nhovratov commented 11 months ago

As I said, please remove the option from your field and add it via TCA, of you really need it.

ursbraem commented 11 months ago

Thanks! I meant regarding the core bug, I'm a bit out of touch what's the best way to report one so it doesn't simply sit there or produce a dupe.

nhovratov commented 11 months ago

I will take care, don't worry! But it has very low priority. This is again something, only comes to light, because you have so many possibilities with Mask, which will almost never be done manually.

ursbraem commented 11 months ago

Ah I see! Thanks!

nhovratov commented 9 months ago

Related to Core issue: https://forge.typo3.org/issues/86493