diff options
author | Yorhel <git@yorhel.nl> | 2021-01-09 16:44:13 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-01-09 16:44:13 +0100 |
commit | 5d275ce2ceb1112c1e02bbe9134b22ac478975fc (patch) | |
tree | 11d3fb560bee52af8f4ab7c2cac73bce6f04799c /lib/VNWeb/Releases | |
parent | 1ec958ba9d2e40c65246bd29f28b2b50364b2a5a (diff) |
AdvSearch: Apply new saved default queries to listings instead of old filters
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r-- | lib/VNWeb/Releases/List.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VNWeb/Releases/List.pm b/lib/VNWeb/Releases/List.pm index 89332200..c9ac1eff 100644 --- a/lib/VNWeb/Releases/List.pm +++ b/lib/VNWeb/Releases/List.pm @@ -52,10 +52,7 @@ TUWF::get qr{/experimental/r}, sub { } } - if(auth && !$opt->{f}{query} && !defined tuwf->reqGet('f')) { - my $def = tuwf->dbVali('SELECT query FROM saved_queries WHERE qtype = \'r\' AND name = \'\' AND uid =', \auth->uid); - $opt->{f} = tuwf->compile({ advsearch => 'r' })->validate($def)->data if $def; - } + $opt->{f} = advsearch_default 'r' if !$opt->{f}{query} && !defined tuwf->reqGet('f'); my @search = map { my $l = '%'.sql_like($_).'%'; |