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

Todd Chapman todd at chaka.net
Wed Apr 5 15:18:25 EDT 2006


On Mon, Apr 03, 2006 at 02:33:04AM +0400, Ruslan Zakirov wrote:
> On 4/1/06, Todd Chapman <todd at chaka.net> wrote:
> On Thu, Mar 30, 2006 at 05:23:07PM -0500, Todd Chapman wrote:
> > On Thu, Mar 30, 2006 at 04:40:12PM -0500, Todd Chapman wrote:
> > > 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
> >
> > OK, I lied a little bit. $Ticket->Members->First gives
> > you the link. It's just that $Ticket->Members->Next won't
> > give you the link because I tries to be helpful (to> > helpful if you ask me).
> >
> > IMHO, if Next won't give you a link, then First shouldn't
> > either (but I think they both should).
> 
>>> Nobody has an opinion???

We have :) I agree that both methods MUST have the same behaviour, butdon't know which one. I don't like all this deep in core hidding ofthe objects even they were marked as deleted, I think that it's toorestrictive and also force me to write patchs and bundle shredder withthem :P
> Looks like I must look into shredder and check it for bugs related tothis code :(

If Jesse would give an opion I could submit a patch... ;)



More information about the Rt-devel mailing list