X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcontact.html;h=24cb237c3ad591b004e84b6bb0ca512d8ee38d8f;hb=11be416520b5c391925c05cbd6118df69218eb56;hp=50935baf49601d833d1a051f2d7ec3df9f277af5;hpb=766d55d2439f63d20dcda10411ebc5665205f977;p=freeside.git diff --git a/httemplate/search/contact.html b/httemplate/search/contact.html index 50935baf4..24cb237c3 100644 --- a/httemplate/search/contact.html +++ b/httemplate/search/contact.html @@ -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) { @@ -240,10 +243,15 @@ for my $col (@report) { my $classnum_url_part; if (@classnum) { - $classnum_url_part = join '', map{ "&classnums=$_" } @classnum, @dest; + $classnum_url_part = join '', map{ "&classnums=$_" } @classnum; $classnum_url_part .= '&classnums=0' if $classnum_null; } +my $dest_url_part; +if (@dest) { + $dest_url_part = join '', map{ "&dest=$_" } @dest; +} + # E-mail pipeline, from email-customers.html through to email queue job, # doesn't support cust_prospect table my $send_email_link = undef; @@ -259,6 +267,7 @@ if ($link eq 'cust_main') { '&refnum=1'. '&with_email=on'. $classnum_url_part. + $dest_url_part. "\">Email a notice to these customers"; }