[Rt-devel] Q about links to deleted tickets.

Todd Chapman todd at chaka.net
Thu Mar 30 16:40:12 EST 2006

On Thu, Mar 30, 2006 at 04:25:16PM -0500, Todd Chapman wrote:
> Should links to ticket be deleted when the ticket is deleted?
> The reason is ask is, $Ticket->Members->Count may return 1,
> but is that members is a deleted ticket then
> $Ticket->Members->First returns undef.
> Or, should Link::Next give you the link even if it is a link
> to a deleted ticket? Why have the link in the database but
> not have Next give it tou you???
> -Todd

Looking at the code for Link::Next(), it won't give you
the link if either BaseObj or TargetObj are deleted.
That means you may have asked for the links to a
deleted ticket, and won't get any of them because of
Next() helpfulness.

More information about the Rt-devel mailing list