Commit 336402ef authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1731333: Use NZ if no country defined for required country prompt"

parents c85fb889 6b23cca1
......@@ -893,7 +893,7 @@ function auth_check_required_fields() {
}
if ($field == 'country') {
$elements[$field]['options'] = getoptions_country();
$elements[$field]['defaultvalue'] = get_config('country');
$elements[$field]['defaultvalue'] = get_config('country') ? get_config('country') : 'nz';
}
if (is_callable(array($classname, 'getoptions'))) {
$options = call_static_method($classname, 'getoptions');
......
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