From f88b18e826730d49b181e13bab437ebd4fc72e2d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 15 Oct 2013 13:18:37 +0800 Subject: Bug 926764: Use of uninitialized value in string eq at extensions/TrackingFlags/Extension.pm line 412 --- extensions/TrackingFlags/Extension.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extensions/TrackingFlags') diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm index 642851052..3628ef8f5 100644 --- a/extensions/TrackingFlags/Extension.pm +++ b/extensions/TrackingFlags/Extension.pm @@ -409,7 +409,8 @@ sub search_clause_structure { my @tracking_flags = map { $_->name } Bugzilla::Extension::TrackingFlags::Flag->get_all; $clause->walk_conditions(sub { my ($clause, $condition) = @_; - if (grep { $condition->field eq $_ } @tracking_flags + if (defined($condition->field) + and grep { $condition->field eq $_ } @tracking_flags and $condition->{value} eq '---') { $condition->{operator} = $condition->{operator} =~ /^not/ -- cgit v1.2.3-24-g4f1b