diff options
author | ivan <ivan> | 2010-07-27 10:09:30 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-27 10:09:30 +0000 |
commit | 51b90581474ad9ce4e047647cd78ed2bc7d742dd (patch) | |
tree | 85700fee1de71fe823cb1470773d157f386db9b2 /rt/lib/RT/Ticket_Overlay.pm | |
parent | 912d9c102ffc1f9826a2ba353e40d1dfbc5bd7b5 (diff) |
don't leak transactions indicating reminders are implemented as tickets, RT#8260
Diffstat (limited to 'rt/lib/RT/Ticket_Overlay.pm')
-rw-r--r-- | rt/lib/RT/Ticket_Overlay.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rt/lib/RT/Ticket_Overlay.pm b/rt/lib/RT/Ticket_Overlay.pm index cde2a893c..bcc96245e 100644 --- a/rt/lib/RT/Ticket_Overlay.pm +++ b/rt/lib/RT/Ticket_Overlay.pm @@ -617,11 +617,16 @@ sub Create { next; } } - + + #don't show transactions for reminders + my $silent = ( !$args{'_RecordTransaction'} + || $self->Type eq 'reminder' + ); + my ( $wval, $wmsg ) = $self->_AddLink( Type => $LINKTYPEMAP{$type}->{'Type'}, $LINKTYPEMAP{$type}->{'Mode'} => $link, - Silent => !$args{'_RecordTransaction'}, + Silent => $silent, 'Silent'. ( $LINKTYPEMAP{$type}->{'Mode'} eq 'Base'? 'Target': 'Base' ) => 1, ); |