contao/core — Issue #3867: Problems with modified dcaconfig
Author: htke4un40f
Created: 2012-01-28 14:25:39+00:00
State: open

Contao 10.2.4

If the three lines listed below are added to the dcaconfig.php together to predifine the width, height and format of images in galleries and protect the values from beeing changed by authors it causes an error. The error occurs after saving the article's properties cause Conato changes the values in the fields for width, height an mode from {200,150,proportional} to {proportional,NULL,proportional} what additionally causes a error message that points to the non numeric and obviously wrong width-value.

$GLOBALS['TL_DCA']['tl_content']['fields']['size']['default'] = array(200,150,'proportional');
$GLOBALS['TL_DCA']['tl_content']['fields']['size']['options'] = array('proportional');
$GLOBALS['TL_DCA']['tl_content']['fields']['size']['eval']['disabled'] = true;