This adjusts the special logic introduced in LP#
1031535 so
that explicitly searching with a field set to not null (e.g.,
when using the Angular grid 'exists' filter) will work.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
} elsif ($gt or $lt) {
my $op = $gt ? '>' : '<';
$v = {$op => $v};
- } elsif (not ref $v and $not) {
+ } elsif (not ref $v and $not and defined($v)) {
# the old way, NOT (blah.id = $v) needs to be
# (blah.id <> $x OR blah.id IS NULL)
$not = 0; # avoid the regular negative transformation