summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/select-did.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html
index 6cc63b961..dd2e8e531 100644
--- a/httemplate/elements/select-did.html
+++ b/httemplate/elements/select-did.html
@@ -99,7 +99,6 @@ Example:
my %opt = @_;
my $conf = new FS::Conf;
-my $country = $conf->config('countrydefault') || 'US';
#false laziness w/tr-select-did.html
#XXX make sure this comes through on errors too
@@ -122,6 +121,10 @@ $export = $exports[0] if scalar(@exports);
my $bulknum = $opt{'bulknum'} || 0;
+my $country = $export->option('country') ||
+ $conf->config('countrydefault') ||
+ 'US';
+
#my $field = $opt{'field'} || 'phonenum';
</%init>