[rt-users] DBIx::SearchBuilder 1.10_04

Autrijus Tang autrijus at autrijus.org
Tue Aug 31 16:16:11 EDT 2004


On Tue, Aug 31, 2004 at 01:15:44PM +0200, Anders Ekstrand wrote:
> I tried both DBIx::SearchBuilder 1.10_02 yesterday and
> DBIx::SearchBuilder 1.10_04 today, and get an erroneous behaviour
> regarding all ticket updates with both versions. The username for the
> updator is blank:
> 
> Anybody else seen this?

Yes.  I have fixed it locally using ->id memoization:

    http://aut.dyndns.org/tmp/Cachable.pm

The error occurs because old objects in the session files did not have
the ->{_id} attribute.  And in any case the pre-filling of ->{_id} is
unneccessary.  Thus in the url above it becomes:

    sub id {
	my $self = shift;
	return ( $self->{'_id'} ||= $self->SUPER::id );
    }

Thanks,
/Autrijus/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20040901/32013e55/attachment.sig>


More information about the rt-users mailing list