- Issue created by @pdureau
- Merge request !30Issue #3481193 by pdureau: Array settings are sometimes overriden by empty values → (Open) created by pdureau
When a setting type is an array (for example, IconSettingType), there is a mechanism to merge the values of the shorthand notation ($element["#foo"]
) and the ones of 'developed" notation ($element["#settings"]["foo"]
):
elseif (is_array($element[$key]) && is_array($setting)) {
$element[$key] = array_merge($element[$key], $setting);
}
https://git.drupalcode.org/project/ui_patterns_settings/-/blob/8.x-2.x/s...
However, valid values of the shortand notation can be overridden by empty values of the developed notation.
Filter developed notation empty values before merging.
Active
2.0
Code