diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-10-01 12:03:01 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-10-01 12:03:01 -0700 |
commit | d5988a9f7a3617de33da3058f2e9f1151b24420e (patch) | |
tree | 3ed8d80cd6a81f160c76c90fcf089e81fe7ffddf /rt/lib | |
parent | 1ab515df162a76347d8146cae4ff34656cc4bcd3 (diff) | |
parent | b6088672c87e2c5984183326b4c0e2d9bd6c34f6 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/lib')
-rwxr-xr-x | rt/lib/RT/Record.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rt/lib/RT/Record.pm b/rt/lib/RT/Record.pm index 1818c2d48..b700fa75f 100755 --- a/rt/lib/RT/Record.pm +++ b/rt/lib/RT/Record.pm @@ -1282,6 +1282,14 @@ 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://%/'.$uri_type.'/', + ); + for my $fstable (qw(cust_main cust_svc)) { $self->{'Customers'}->Limit( |