[rt-users] Use of uninitialized value in pattern match (m//) [yet again]
Jesse Vincent
jesse at bestpractical.com
Fri Jul 13 15:58:52 EDT 2007
Thanks! Applied.
On Jul 13, 2007, at 10:40 AM, Vlad wrote:
> Hi,
>
> running RT 3.6.4 and my messages log is filled with
>
> Jul 13 17:30:56 dc7 RT: Use of uninitialized value in pattern match
> (m//) at rt/lib/RT/Transaction_Overlay.pm line 1079.
>
> since it looks like it's unlikely to be fixed any time soon (I've seen
> posts about that from 2006), could someone just confirm that it's safe
> to modify that line like that to get rid of these annoying messages:
>
> @@ -1076,7 +1076,7 @@
>
> if ( UNIVERSAL::can( $self->Object, 'QueueObj' ) ) {
>
> - unless ( $field =~ /^\d+$/o ) {
> + unless ( defined $field && $field =~ /^\d+$/o ) {
> my $CFs = RT::CustomFields->new( $self->CurrentUser );
> $CFs->Limit( FIELD => 'Name', VALUE => $field);
> $CFs->LimitToLookupType($self->CustomFieldLookupType);
>
>
> --
> Vlad
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly
> Media. Buy a copy at http://rtbook.bestpractical.com
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070713/e87df5be/attachment.sig>
More information about the rt-users
mailing list