Skip to content

Commit

Permalink
Update FindDeps and Serialize
Browse files Browse the repository at this point in the history
Add TimeWorker field to the FindDeps and Serialize logic.
  • Loading branch information
bkembreeBPS committed Dec 4, 2024
1 parent 51298fd commit ae93aac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/RT/Transaction.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit ae93aac

Please sign in to comment.