Project

General

Profile

Actions

Bug #86292

closed

Overwriting crop variants title with TSConfig leads to exception

Added by Susanne Moog about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2018-09-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #82454: Make TranslateViewHelper compilableClosed2017-09-11

Actions
Related to TYPO3 Core - Bug #79812: Allow overriding cropVariants for Image ManipulationClosed2017-02-14

Actions
Actions

Also available in: Atom PDF