Details
-
Bug
-
Resolution: Fixed
-
High
-
5.1
-
None
Description
In eZ/Publish/Core/FieldType/FieldType.php:
public function applyDefaultSettings( &$fieldSettings ) { foreach ( $this->getSettingsSchema() as $settingName => $settingConfiguration ) { // Checking that a default entry exists in the settingsSchema but that no value has been provided if ( !array_key_exists( $settingName, $fieldSettings ) && array_key_exists( "default", $settingConfiguration ) ) { $fieldSettings[$settingName] = $settingConfiguration["default"]; } } }
$fieldSettings might be a null value which might cause the following notice:
Warning: array_key_exists() expects parameter 2 to be array, null given in eZ/Publish/Core/FieldType/FieldType.php line 186