From: Ivan Kohler Date: Wed, 2 Nov 2016 21:53:46 +0000 (-0700) Subject: fix adding a new location on a quotation, RT#73236 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2ad3c23b11ac3977445b39f9019795a137bc9626 fix adding a new location on a quotation, RT#73236 --- diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 3938d2adb..9f3d9e12d 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -145,8 +145,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 });