Issue Bug Closed

#77264Old image rendering settings are not overriden with the fallback ones [tt_content.image.20.rendering]

Deividas Simas 07/27/16, 09:39 updated 03/23/20, 14:44

Description

Good afternoon :)

So I lost some hours figuring out whats happening until I came across TYPO3\CMS\CssStyledContent\Controller\CssStyledContentControler at line 515 where rendering settings are replaced with fallbackRendering settings with array_replace_recursive().

My Problem is that the old settings from singleNoCaption are being kept which produces me many html errors. Is that a feature?

This would be a fast solution I need:

    if ($fallbackRenderMethod && is_array($conf['rendering.'][$fallbackRenderMethod . '.'])) {
        if(is_array($conf['rendering.'][$fallbackRenderMethod . '.']['singleStdWrap.'])){
            unset($conf['singleStdWrap.']);
        }
        $conf = array_replace_recursive($conf, $conf['rendering.'][$fallbackRenderMethod . '.']);
    }

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.