[rt-users] We found a merged ticket

Jesse Vincent jesse at bestpractical.com
Tue Feb 12 09:21:53 EST 2008




> sub Load {
> 	...
> 	#If we're merged, resolve the merge.
>      if ( ( $self->EffectiveId ) and ( $self->EffectiveId != $self- 
>  >Id ) ) {
>          $RT::Logger->debug ("We found a merged ticket.". $self- 
>  >id ."/".$self->EffectiveId);
>          return ( $self->Load( $self->EffectiveId ) );
>      }
>      ...
> }
> - --
> 
> In my opinion $self->Load( $self->EffectiveId ) causes an infinite  
> loop when there are tickets merged into the current one. 

How is that an infinite loop?  It's recursion, yes. But I don't believe
it's infinite



More information about the rt-users mailing list