X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcontact.html;h=4b3fe83998916fb984fd10eba65ece371dd6d917;hp=35a74a59355a064ca9ff8971d898d5c92179bee3;hb=e63d638c6b7b2c9adedb43e0bd9afe4260714837;hpb=b00bc7c2acc8fc20cb6cf4b3dad03da47f414499 diff --git a/httemplate/search/contact.html b/httemplate/search/contact.html index 35a74a593..4b3fe8399 100644 --- a/httemplate/search/contact.html +++ b/httemplate/search/contact.html @@ -162,10 +162,10 @@ my %classname = # And now for something completly different: my @report = ( - { label => 'First', field => sub { encode_entities shift->contact_first }}, - { label => 'Last', field => sub { encode_entities shift->contact_last }}, - { label => 'Title', field => sub { encode_entities shift->contact_title }}, - { label => 'E-Mail', field => sub { encode_entities shift->contact_email_emailaddress }}, + { label => 'First', field => 'contact_first' }, + { label => 'Last', field => 'contact_last' }, + { label => 'Title', field => 'contact_title' }, + { label => 'E-Mail', field => 'contact_email_emailaddress' }, { label => 'Work Phone', field => $get_phone_sub->('Work') }, { label => 'Mobile Phone', field => $get_phone_sub->('Mobile') }, { label => 'Home Phone', field => $get_phone_sub->('Home') }, @@ -195,12 +195,15 @@ my @report = ( $rec->cust_contact_message_dest ? 'Y' : 'N'; }}, { label => 'Customer', - link => sub { - my $rec = shift; - $rec->cust_main_custnum - ? ["${p}view/cust_main.cgi?", 'cust_main_custnum' ] - : ["${p}view/prospect_main.html?", 'prospect_main_prospectnum' ]; - }, + link => [ + "${fsurl}view/", + sub { + my $row = shift; + $row->cust_contact_custnum + ? 'cust_main.cgi?'.$row->cust_contact_custnum + : 'prospect_main.html?'.$row->prospect_contact_prospectnum + } + ], field => sub { my $rec = shift; if ($rec->prospect_contact_prospectnum) {