don't leak transactions indicating reminders are implemented as tickets, RT#8260
authorivan <ivan>
Tue, 27 Jul 2010 10:09:30 +0000 (10:09 +0000)
committerivan <ivan>
Tue, 27 Jul 2010 10:09:30 +0000 (10:09 +0000)
rt/lib/RT/Ticket_Overlay.pm

index cde2a89..bcc9624 100644 (file)
@@ -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,
             );