summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags
diff options
context:
space:
mode:
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/