diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-11-02 14:53:46 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-11-02 14:53:46 -0700 |
commit | 2ad3c23b11ac3977445b39f9019795a137bc9626 (patch) | |
tree | 9139886d2a5e7bb2d3f5e0ff57ca0fd84d01141f | |
parent | 7df69c8d38d07327d11c009a08f8cf3fa1891cd0 (diff) |
fix adding a new location on a quotation, RT#73236
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 3938d2a..9f3d9e1 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 }); |