summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-10-15 07:18:37 +0200
committerByron Jones <bjones@mozilla.com>2013-10-15 07:18:37 +0200
commitf88b18e826730d49b181e13bab437ebd4fc72e2d (patch)
treebe61baf76ce5f2cb49d49814b757e9a22e9c3a8f /extensions/TrackingFlags
parent48e69efd5858ba478b3279b5ad87572d32934810 (diff)
downloadbugzilla-f88b18e826730d49b181e13bab437ebd4fc72e2d.tar.gz
bugzilla-f88b18e826730d49b181e13bab437ebd4fc72e2d.tar.xz
Bug 926764: Use of uninitialized value in string eq at extensions/TrackingFlags/Extension.pm line 412
Diffstat (limited to 'extensions/TrackingFlags')
-rw-r--r--extensions/TrackingFlags/Extension.pm3
1 files changed, 2 insertions, 1 deletions
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/