summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-11-02 14:53:43 -0700
committerIvan Kohler <ivan@freeside.biz>2016-11-02 14:53:43 -0700
commit0c4eaa02f8fa5f2ab1bc1787efb018b10c532145 (patch)
tree00e1a6698b899b4c0d3490fc8198095bbe5eee3b
parentf2b43a877c70aa367595fe2fc4fcffd82f62d001 (diff)
fix adding a new location on a quotation, RT#73236
-rw-r--r--httemplate/edit/process/quick-cust_pkg.cgi4
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 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
});