Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into 3.x
authorMark Wells <mark@freeside.biz>
Wed, 2 Nov 2016 22:35:38 +0000 (15:35 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 2 Nov 2016 22:35:38 +0000 (15:35 -0700)
httemplate/edit/process/quick-cust_pkg.cgi

index 3938d2a..9f3d9e1 100644 (file)
@@ -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
     });