summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/quick-cust_pkg.cgi
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/quick-cust_pkg.cgi
parent75ddd5240b233dd45f1d748f628e01238be0e751 (diff)
better detection of new locations that are the same as existing locations, #940, #13763, #14717
Diffstat (limited to 'httemplate/edit/process/quick-cust_pkg.cgi')
-rw-r--r--httemplate/edit/process/quick-cust_pkg.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi
index 2dadbccdc..4ea4ace9e 100644
--- a/httemplate/edit/process/quick-cust_pkg.cgi
+++ b/httemplate/edit/process/quick-cust_pkg.cgi
@@ -143,10 +143,10 @@ if ( $quotationnum ) {
my %opt = ( 'cust_pkg' => $cust_pkg );
if ( $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 geocode )
- };
+ ('custnum', FS::cust_main->location_fields)
+ });
$opt{'cust_location'} = $cust_location;
}