Commit aad1147d authored by git's avatar git Committed by bojanz

Issue #2884090 by kmonahan: "Illegal offset" and "Array to string conversion"...

Issue #2884090 by kmonahan: "Illegal offset" and "Array to string conversion" errors appear when using Plain formatter with dependentLocality
parent e3ea8a9d
......@@ -197,7 +197,7 @@ class AddressPlainFormatter extends FormatterBase implements ContainerFactoryPlu
}
// Remember the original value so that it can be used for $parents.
$original_values[$field] = $values[$field];
$original_values[$field] = $value;
// Replace the value with the expected code.
if (LocaleHelper::match($address->getLocale(), $subdivision->getLocale())) {
$values[$field] = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment