Skip to content

Commit eca5dcc

Browse files
committed
Add a default_country config option
1 parent 5bbec2b commit eca5dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/client/form/client.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
'country' => array (
319319
'datatype' => 'VARCHAR',
320320
'formtype' => 'SELECT',
321-
'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''),
321+
'default' => ($conf['default_country'] ?? strtoupper($conf['language'] ?? '')),
322322
'datasource' => array ( 'type' => 'SQL',
323323
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name ASC',
324324
'keyfield' => 'iso',

0 commit comments

Comments
 (0)