From 0c4eaa02f8fa5f2ab1bc1787efb018b10c532145 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 2 Nov 2016 14:53:43 -0700 Subject: [PATCH] fix adding a new location on a quotation, RT#73236 --- httemplate/edit/process/quick-cust_pkg.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 6a346e0be..3f1984f60 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -191,8 +191,8 @@ if ( $quotationnum ) { if ( $locationnum == -1 ) { my $cust_location = FS::cust_location->new({ - 'custnum' => $custnum, - 'prospectnum' => $prospectnum, + 'custnum' => $cust_main ? $cust_main->custnum : '', + 'prospectnum' => $prospect_main ? $prospect_main->prospectnum : '', map { $_ => scalar($cgi->param($_)) } FS::cust_main->location_fields }); -- 2.11.0