diff options
author | ivan <ivan> | 2010-09-10 06:17:04 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-09-10 06:17:04 +0000 |
commit | 72bf8f0f896709bdafe88c0232bcd1758bab5796 (patch) | |
tree | 9cc05351275be93ac5cf2502018aee058566f2d2 /rt | |
parent | 972250d54b5a8b3b071c878de27d2bc87e3222f1 (diff) |
fix for spurious customers appearing, thanks to Erik L
Diffstat (limited to 'rt')
-rw-r--r-- | rt/lib/RT/Ticket_Overlay.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rt/lib/RT/Ticket_Overlay.pm b/rt/lib/RT/Ticket_Overlay.pm index b60ae38bd..8d04742e9 100644 --- a/rt/lib/RT/Ticket_Overlay.pm +++ b/rt/lib/RT/Ticket_Overlay.pm @@ -2312,6 +2312,16 @@ sub _Links { return $links; } + # without this you will also get RT::User(s) instead of tickets! + if ($field == 'Base' and $type == 'MemberOf') { + my $rtname = RT->Config->Get('rtname'); + $links->Limit( + FIELD => 'Base', + OPERATOR => 'STARTSWITH', + VALUE => "fsck.com-rt://$rtname/ticket/", + ); + } + # Maybe this ticket is a merge ticket my $limit_on = 'Local'. $field; # at least to myself |