Commit 6b23cca1 authored by Robert Lyon's avatar Robert Lyon
Browse files

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



behatnotneeded

Change-Id: I6c5c485b790d6da64ff72c82fada1e83fc6fcb8f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 491bb57f
...@@ -893,7 +893,7 @@ function auth_check_required_fields() { ...@@ -893,7 +893,7 @@ function auth_check_required_fields() {
} }
if ($field == 'country') { if ($field == 'country') {
$elements[$field]['options'] = getoptions_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'))) { if (is_callable(array($classname, 'getoptions'))) {
$options = call_static_method($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