]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 901589: The 'isempty' operator does not work for custom multiselect fields
authorPami Ketolainen <pami.ketolainen@jollamobile.com>
Tue, 3 Sep 2013 09:57:13 +0000 (11:57 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 3 Sep 2013 09:57:13 +0000 (11:57 +0200)
r/a=glob

Bugzilla/Search.pm

index 557acec74f265d15e77f72b52d998cfcccb8da27..18b2a3107590e7fad2d597f6801f2749a9570c46 100644 (file)
@@ -3007,6 +3007,15 @@ sub _multiselect_isempty {
         };
         return "tag_$chart_id.id IS $not NULL";
     }
+    elsif ($self->_multi_select_fields->{$field}) {
+        push @$joins, {
+            table => "bug_$field",
+            as => "bug_${field}_$chart_id",
+            from  => 'bug_id',
+            to    => 'bug_id',
+        };
+        return "bug_${field}_$chart_id.bug_id IS $not NULL";
+    }
 }
 
 ###############################