X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-did.html;h=dd2e8e531fcee6ee47f11b4453d192857f012c29;hb=bd4cf157ffed8f1191724c1975866c3d21fb30df;hp=5256ae44de41b163d9592e83b5102b9e63b8d1c9;hpb=7934ac2de21debc15ce89405ed0f4c061c4f0236;p=freeside.git diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html index 5256ae44d..dd2e8e531 100644 --- a/httemplate/elements/select-did.html +++ b/httemplate/elements/select-did.html @@ -13,9 +13,8 @@ Example: % if ( $use_selector ) { -% if ( $export->exporttype eq 'vitelity' && -% ( $export->option('restrict_selection') eq 'non-tollfree' -% || !$export->option('restrict_selection')) ) { +% if ( $export->option('restrict_selection') eq 'non-tollfree' +% || !$export->option('restrict_selection') ) { @@ -63,9 +62,8 @@ Example:
% } -% if ( $export->exporttype eq 'vitelity' && -% ( $export->option('restrict_selection') eq 'tollfree' -% || !$export->option('restrict_selection')) ) { +% if ( $export->option('restrict_selection') eq 'tollfree' +% || !$export->option('restrict_selection') ) { Toll-free <% include('/elements/select-phonenum.html', 'svcpart' => $svcpart, @@ -101,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 @@ -124,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';