summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/svc_phone.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process/svc_phone.html')
-rw-r--r--httemplate/edit/process/svc_phone.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/svc_phone.html b/httemplate/edit/process/svc_phone.html
index 27e975568..9983ea2cb 100644
--- a/httemplate/edit/process/svc_phone.html
+++ b/httemplate/edit/process/svc_phone.html
@@ -40,10 +40,10 @@ my $args_callback = sub {
my %opt = ();
if ( $cgi->param('locationnum') == -1 ) {
- my $cust_location = new FS::cust_location {
+ my $cust_location = FS::cust_location->new_or_existing({
map { $_ => scalar($cgi->param($_)) }
qw( custnum address1 address2 city county state zip country )
- };
+ });
$opt{'cust_location'} = $cust_location;
}