summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-10-16 08:05:19 +0200
committerByron Jones <bjones@mozilla.com>2013-10-16 08:05:19 +0200
commit57e9f86a58060ecbad9bc41d26d6998dccd11c69 (patch)
tree7e351f1f4b03ce1f706a0fce80f1a1e2f86f9c59
parentb6a274699f50230080685c275a075e0ca0c55402 (diff)
downloadbugzilla-57e9f86a58060ecbad9bc41d26d6998dccd11c69.tar.gz
bugzilla-57e9f86a58060ecbad9bc41d26d6998dccd11c69.tar.xz
Bug 927026: searching for an unset tracking flag is failing again
-rw-r--r--Bugzilla/Search.pm4
-rw-r--r--extensions/TrackingFlags/Extension.pm18
2 files changed, 0 insertions, 22 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index bb94cad47..51f08f558 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1669,10 +1669,6 @@ sub _params_to_data_structure {
# And then process the modern "custom search" format.
$clause->add( $self->_custom_search );
- # BMO - allow post-processing of search clauses
- Bugzilla::Hook::process('search_clause_structure',
- { search => $self, clause => $clause });
-
return $clause;
}
diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm
index 455afdd1f..bbf1650d5 100644
--- a/extensions/TrackingFlags/Extension.pm
+++ b/extensions/TrackingFlags/Extension.pm
@@ -402,24 +402,6 @@ sub search_operator_field_override {
}
}
-sub search_clause_structure {
- my ($self, $args) = @_;
- # when searching, map "eq ---" to "isempty"
- my $clause = $args->{clause};
- my @tracking_flags = map { $_->name } Bugzilla::Extension::TrackingFlags::Flag->get_all;
- $clause->walk_conditions(sub {
- my ($clause, $condition) = @_;
- if (defined($condition->field)
- and grep { $condition->field eq $_ } @tracking_flags
- and $condition->{value} eq '---')
- {
- $condition->{operator} = $condition->{operator} =~ /^not/
- ? 'isnotempty'
- : 'isempty';
- }
- });
-}
-
sub _tracking_flags_search_nonchanged {
my ($flag_id, $search, $args) = @_;
my ($bugs_table, $chart_id, $joins, $value, $operator) =