From: ivan Date: Tue, 27 Jul 2010 10:09:30 +0000 (+0000) Subject: don't leak transactions indicating reminders are implemented as tickets, RT#8260 X-Git-Tag: root_of_svc_elec_features~16 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=51b90581474ad9ce4e047647cd78ed2bc7d742dd don't leak transactions indicating reminders are implemented as tickets, RT#8260 --- 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, );