[freeside-commits] branch master updated. 2e8c617c6ad1d4d9dc5672422e972f0ba4f79472

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


The branch, master has been updated
       via  2e8c617c6ad1d4d9dc5672422e972f0ba4f79472 (commit)
      from  214c4e855a429f7a50dfd771b18c74ef7a34be58 (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 2e8c617c6ad1d4d9dc5672422e972f0ba4f79472
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jul 19 08:21:00 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