Commit 2b0c7455 authored by bojanz's avatar bojanz

Remove the workaround note, a NULL country_code is expected behavior.

parent c6a3d221
......@@ -112,8 +112,6 @@ class Address extends FormElement {
if (is_array($input)) {
$input = self::applyDefaults($input);
if (empty($input['country_code']) && $element['#required']) {
// Workaround for an #ajax bug that causes an empty (but defined)
// $input to be passed when the element is built for the first time.
$input['country_code'] = $element['#default_value']['country_code'];
}
}
......
......@@ -99,8 +99,6 @@ class ZoneTerritory extends FormElement {
if (is_array($input)) {
$input = self::applyDefaults($input);
if (empty($input['country_code']) && $element['#required']) {
// Workaround for an #ajax bug that causes an empty (but defined)
// $input to be passed when the element is built for the first time.
$input['country_code'] = $element['#default_value']['country_code'];
}
}
......
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