[freeside-commits] branch FREESIDE_4_BRANCH updated. 91367084a4d14bfc639d2675d20056377613ee4b
Mitch Jackson
mitch at freeside.biz
Sun Oct 28 12:31:12 PDT 2018
The branch, FREESIDE_4_BRANCH has been updated
via 91367084a4d14bfc639d2675d20056377613ee4b (commit)
from 7bdef72932450207f1dc3262460358a948a3c3dc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 91367084a4d14bfc639d2675d20056377613ee4b
Author: Mitch Jackson <mitch at freeside.biz>
Date: Sun Oct 28 15:28:37 2018 -0400
RT# 73422 Contact report - fix customer link
diff --git a/httemplate/search/contact.html b/httemplate/search/contact.html
index 50935baf4..4b3fe8399 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) {
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/contact.html | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
More information about the freeside-commits
mailing list