Actions
Bug #86292
closedOverwriting crop variants title with TSConfig leads to exception
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)
Actions