fix contact seletor, fallout from #27943 changes
authorIvan Kohler <ivan@freeside.biz>
Thu, 5 Feb 2015 04:19:03 +0000 (20:19 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 5 Feb 2015 04:19:03 +0000 (20:19 -0800)
httemplate/elements/tr-select-contact.html

index 0bfa893..4eb8a98 100644 (file)
@@ -139,7 +139,7 @@ if ( $cgi->param('error') ) {
     $contactnum = $opt{'curr_value'};
   } elsif ($prospect_main) {
     my @prospect_contact = $prospect_main->prospect_contact;
-    $contactnum = $prospect_contact[0]->contactnum if scalar(@cust_contact)==1;
+    $contactnum = $prospect_contact[0]->contactnum if scalar(@prospect_contact)==1;
   } else { #$cust_main
     $cgi->param('contactnum') =~ /^(\-?\d*)$/ or die "illegal contactnum";
     $contactnum = $1;