From ae93aacbaebac500efb3252a370ff11b45c5de6b Mon Sep 17 00:00:00 2001 From: Brad Embree Date: Thu, 21 Nov 2024 14:57:01 -0800 Subject: [PATCH] Update FindDeps and Serialize Add TimeWorker field to the FindDeps and Serialize logic. --- lib/RT/Transaction.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/RT/Transaction.pm b/lib/RT/Transaction.pm index 51af7ebca2..b7f071f186 100644 --- a/lib/RT/Transaction.pm +++ b/lib/RT/Transaction.pm @@ -2419,6 +2419,13 @@ sub FindDependencies { $ticket->Load( $self->NewValue ); $deps->Add( out => $ticket ); } +=for comment + if ( ( $self->TimeWorker != 0 ) && ( $self->TimeWorker != $self->Creator ) ) { + my $user = RT::User->new( RT->SystemUser ); + $user->Load( $self->TimeWorker ); + $deps->Add( out => $user ); + } +=cut } sub __DependsOn { @@ -2523,6 +2530,11 @@ sub Serialize { } elsif ($type =~ /^(Add|Open|Resolve)Reminder$/) { $store{NewValue} = \( join '-', 'RT::Ticket', $RT::Organization, $store{NewValue} ); } +=for comment + if ( ( $store{TimeWorker} != 0 ) && ( $store{TimeWorker} != $store{Creator} ) ) { + $store{TimeWorker} = \$args{serializer}{_uid}{user}{ $store{TimeWorker} }; + } +=cut return %store; }