[Rt-devel] Re: [rt-users] RT Queue Assignment

Jesse Vincent jesse at bestpractical.com
Sun May 28 18:52:18 EDT 2006

> tickets that you own or that are unowned". We have two variants:
> 1) $self->SetOwner($RT::Nobody->id, 'Force');
> 2) my $tmp = $self->new( $RT::SystemUser );
>    $tmp->Load( $self->id );
>    $tmp->Untake;
> Both do the same, but second solution creates transaction under system
> user. Which one is correct variant?

I think #2 is the right one, as you don't want it to fail if the user
doesn't for some reason have the right to mess with owners there.

More information about the Rt-devel mailing list