X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FRecord.pm;h=b700fa75f12cdd0b09a143cd602e9d22954dd2ca;hb=70e31cdfd01949235897035ad818e9a7b2d0c958;hp=d2ffc533d8d24063c9b4bb0105452a03ac84c451;hpb=0ed195595b5c7ea404c8848d9d1881ada4214489;p=freeside.git diff --git a/rt/lib/RT/Record.pm b/rt/lib/RT/Record.pm index d2ffc533d..b700fa75f 100755 --- a/rt/lib/RT/Record.pm +++ b/rt/lib/RT/Record.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -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(