summaryrefslogtreecommitdiff
path: root/rt/lib/RT/URI/freeside/Internal.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-12-20 11:50:46 -0800
committerMark Wells <mark@freeside.biz>2012-12-20 11:50:46 -0800
commit452da5c4005c7dccc504db38578b9af2227d6e15 (patch)
treee27ec48a558d38072797e7df61e23a9ac4889bd2 /rt/lib/RT/URI/freeside/Internal.pm
parent9ff8902948074943f59ebad50842253574c45af2 (diff)
improve display of ticket service links, #17067
Diffstat (limited to 'rt/lib/RT/URI/freeside/Internal.pm')
-rw-r--r--rt/lib/RT/URI/freeside/Internal.pm22
1 files changed, 16 insertions, 6 deletions
diff --git a/rt/lib/RT/URI/freeside/Internal.pm b/rt/lib/RT/URI/freeside/Internal.pm
index b5e56ee1f..61b256ef9 100644
--- a/rt/lib/RT/URI/freeside/Internal.pm
+++ b/rt/lib/RT/URI/freeside/Internal.pm
@@ -161,12 +161,12 @@ sub _FreesideURILabelLong {
} elsif ( $table eq 'cust_svc' ) {
my $string = '';
- my $cust = $self->CustomerResolver;
- if ( $cust ) {
- $string = $cust->AsStringLong;
- }
- $string .= '<B><A HREF="' . $self->HREF . '">' .
- $self->AsString . '</A></B>';
+ # we now do this within the UI
+ #my $cust = $self->CustomerResolver;
+ #if ( $cust ) {
+ # $string = $cust->AsStringLong;
+ #}
+ $string .= $self->AsString;
return $string;
} else {
@@ -177,6 +177,16 @@ sub _FreesideURILabelLong {
}
+sub AsString {
+ my $self = shift;
+ if ( $self->{'fstable'} eq 'cust_svc' ) {
+ return '<B><A HREF="' . $self->HREF . '">' .
+ $self->_FreesideURILabel . '</A></B>';
+ } else {
+ $self->SUPER::AsString;
+ }
+}
+
sub CustomerResolver {
my $self = shift;
if ( $self->{fstable} eq 'cust_main' ) {