summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/change-cust_pkg.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-03-29 23:15:21 -0700
committerMark Wells <mark@freeside.biz>2013-03-29 23:15:21 -0700
commita59da6000c99b8fa3f391122900c44735593f544 (patch)
treec6619bd01455cbe57df9b4b9fc532c1f8112c89e /httemplate/edit/process/change-cust_pkg.html
parent75ddd5240b233dd45f1d748f628e01238be0e751 (diff)
better detection of new locations that are the same as existing locations, #940, #13763, #14717
Diffstat (limited to 'httemplate/edit/process/change-cust_pkg.html')
-rw-r--r--httemplate/edit/process/change-cust_pkg.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/change-cust_pkg.html b/httemplate/edit/process/change-cust_pkg.html
index 2770f3283..77f261d56 100644
--- a/httemplate/edit/process/change-cust_pkg.html
+++ b/httemplate/edit/process/change-cust_pkg.html
@@ -32,11 +32,11 @@ my %change = map { $_ => scalar($cgi->param($_)) }
$change{'keep_dates'} = 1;
if ( $cgi->param('locationnum') == -1 ) {
- my $cust_location = new FS::cust_location {
+ my $cust_location = FS::cust_location->new_or_existing({
'custnum' => $cust_pkg->custnum,
map { $_ => scalar($cgi->param($_)) }
qw( address1 address2 city county state zip country )
- };
+ });
$change{'cust_location'} = $cust_location;
}