Issue Bug Closed

#86292Overwriting crop variants title with TSConfig leads to exception

Susanne Moog 09/18/18, 09:59 updated 10/02/18, 10:25

Description

Using config as described in https://review.typo3.org/#/c/51676/ does not work anymore, an exception is thrown.

How to reproduce:

Add the following in page TSConfig:

    TCEFORM.sys_file_reference.crop.config.cropVariants {
        default {
            title = Default desktop
            selectedRatio = NaN
            allowedAspectRatios {
                NaN {
                    title = free
                    value = 0.0
                }
            }
        }
        specialMobile {
            title = Our special mobile variant
            selectedRatio = NaN
            allowedAspectRatios {
                4:3 {
                    title = ratio 4/3
                    value = 1.3333333
                }
            }
        }
    }

Open any element with crop wizard (textpic for example) —> an exception is thrown.

Caused by https://review.typo3.org/#/c/54119/ (the compiled version of the translate viewhelper does not catch exceptions)

Reviews 1