summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-09-11 16:08:44 +0200
committerByron Jones <glob@mozilla.com>2014-09-11 16:08:44 +0200
commita446e1976d2d03146501869c35cd1fb8ed149eed (patch)
tree4d649c90b742df5697f951756ad64aebfe7b7f72 /extensions
parent5b25f5c1f223643246750f74538fe1e95aea4382 (diff)
downloadbugzilla-a446e1976d2d03146501869c35cd1fb8ed149eed.tar.gz
bugzilla-a446e1976d2d03146501869c35cd1fb8ed149eed.tar.xz
Bug 1064678: searching for tracking flag "is empty" is generating incorrect sql
Diffstat (limited to 'extensions')
-rw-r--r--extensions/TrackingFlags/Extension.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm
index 33cac7b9d..a1b5a0ef6 100644
--- a/extensions/TrackingFlags/Extension.pm
+++ b/extensions/TrackingFlags/Extension.pm
@@ -510,7 +510,12 @@ sub _tracking_flags_search_nonchanged {
push(@$joins, $bugs_join);
- $args->{'full_field'} = "COALESCE($bugs_alias.value, '---')";
+ if ($operator eq 'isempty' or $operator eq 'isnotempty') {
+ $args->{'full_field'} = "$bugs_alias.value";
+ }
+ else {
+ $args->{'full_field'} = "COALESCE($bugs_alias.value, '---')";
+ }
}
sub bug_end_of_create {