[freeside-commits] branch FREESIDE_4_BRANCH updated. f2aac66d05f7d8c62e54b58200347922384a7290

Ivan Kohler ivan at freeside.biz
Thu Jul 19 08:21:05 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  f2aac66d05f7d8c62e54b58200347922384a7290 (commit)
      from  4042cd7283400474a4980620041c823701e64632 (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 f2aac66d05f7d8c62e54b58200347922384a7290
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jul 19 08:21:04 2018 -0700

    fix phantom customer links (fix user links)

diff --git a/rt/lib/RT/Record.pm b/rt/lib/RT/Record.pm
index 8f1b5be5e..b700fa75f 100755
--- a/rt/lib/RT/Record.pm
+++ b/rt/lib/RT/Record.pm
@@ -1282,9 +1282,12 @@ sub Customers {
 
       $self->{'Customers'} = $self->MemberOf->Clone;
 
+      my $RecordType = $self->RecordType;
+      my $uri_type = $RecordType eq 'Ticket' ? 'ticket' : "RT::$RecordType";
+
       $self->{'Customers'}->Limit( FIELD    => 'Base',
                                    OPERATOR => 'STARTSWITH',
-                                   VALUE    => 'fsck.com-rt://%/ticket/',
+                                   VALUE    => 'fsck.com-rt://%/'.$uri_type.'/',
                                  );
 
       for my $fstable (qw(cust_main cust_svc)) {

-----------------------------------------------------------------------

Summary of changes:
 rt/lib/RT/Record.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list