Skip to content
Snippets Groups Projects
Unverified Commit eca5dcc5 authored by Helmo's avatar Helmo
Browse files

Add a default_country config option

parent 5bbec2b9
No related branches found
No related tags found
No related merge requests found
Pipeline #11597 passed
...@@ -318,7 +318,7 @@ $form["tabs"]['address'] = array ( ...@@ -318,7 +318,7 @@ $form["tabs"]['address'] = array (
'country' => array ( 'country' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'SELECT', 'formtype' => 'SELECT',
'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''), 'default' => ($conf['default_country'] ?? strtoupper($conf['language'] ?? '')),
'datasource' => array ( 'type' => 'SQL', 'datasource' => array ( 'type' => 'SQL',
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name ASC', 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name ASC',
'keyfield' => 'iso', 'keyfield' => 'iso',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment