#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
$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(