diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-07-19 08:21:00 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-07-19 08:21:00 -0700 |
commit | 2e8c617c6ad1d4d9dc5672422e972f0ba4f79472 (patch) | |
tree | 3044ae7c658bf886968b465cc449b0089d723846 /rt | |
parent | 214c4e855a429f7a50dfd771b18c74ef7a34be58 (diff) |
fix phantom customer links (fix user links)
Diffstat (limited to 'rt')
-rwxr-xr-x | rt/lib/RT/Record.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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)) { |