MT#16955 API added NULL query params macro

Change-Id: Ie5e87964a569c60d262eac682bad0339ae9b225d
changes/62/3762/2
Kirill Solomko 10 years ago
parent 7f93fbbaf5
commit 9fcd55e6c5

@ -604,6 +604,7 @@ sub apply_query_params {
next unless($p[0]->{query}); # skip "dummy" query parameters
my $q = $c->req->query_params->{$param}; # TODO: arrayref?
$q =~ s/\*/\%/g;
$q = undef if $q eq "NULL"; # IS NULL translation
if(@p) {
$item_rs = $item_rs->search($p[0]->{query}->{first}($q,$c), $p[0]->{query}->{second}($q,$c));
}

Loading…
Cancel
Save