Skip to content
Snippets Groups Projects

Fix translation issue setting last option label translated with first element translated label

Merged Ludovic Favre requested to merge issue/webform-3451193:6.2.x into 6.2.x
1 unresolved thread
@@ -542,9 +542,9 @@ class WebformElementHelper {
* An array of options to be merged.
*/
public static function mergeOptions(array &$options, array $source_options) {
foreach ($options as $key => &$option) {
foreach ($options as $key => $option) {
if (isset($source_options[$key]) && is_scalar($option) && gettype($option) === gettype($source_options[$key])) {
$option = $source_options[$key];
$options[$key] = $source_options[$key];
}
elseif (is_array($option)) {
unset($options[$key]);
Loading