X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcontact.html;h=759f095216b3bfd62deb79d23d63258e9843908a;hb=60a758ffd673991869547bf57cba228d53ce6ef3;hp=44c864c162fe4c104b5aff61b7ca8b7c5e6ed0d5;hpb=9c2854f48fb79a5534bbb35c4b7c12b2e6acc0a4;p=freeside.git

diff --git a/httemplate/search/contact.html b/httemplate/search/contact.html
index 44c864c16..759f09521 100644
--- a/httemplate/search/contact.html
+++ b/httemplate/search/contact.html
@@ -24,7 +24,8 @@ my $addl_from = '';
 
 my $email_sub = sub {
   my $contact = shift;
-  my @contact_email = $contact->contact_email;
+  #can't because contactnum is in the wrong field #my @contact_email = $contact->contact_email;
+  my @contact_email = qsearch('contact_email', { 'contactnum' => $contact->contact_contactnum } );
   join(', ', map $_->emailaddress, @contact_email);
 };