summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhttemplate/edit/process/rate_region.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/edit/process/rate_region.cgi b/httemplate/edit/process/rate_region.cgi
index 3933ff3c5..d83940632 100755
--- a/httemplate/edit/process/rate_region.cgi
+++ b/httemplate/edit/process/rate_region.cgi
@@ -24,9 +24,11 @@ my $countrycode = $cgi->param('countrycode');
my @npa = split(/\s*,\s*/, $cgi->param('npa'));
$npa[0] = '' unless @npa;
my @rate_prefix = map {
+ my($npa,$nxx) = split('-', $_);
new FS::rate_prefix {
'countrycode' => $countrycode,
- 'npa' => $_,
+ 'npa' => $npa,
+ 'nxx' => $nxx,
}
} @npa;