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/TT/TagPage.pm | |
parent | 1ec958ba9d2e40c65246bd29f28b2b50364b2a5a (diff) |
AdvSearch: Apply new saved default queries to listings instead of old filters
Diffstat (limited to 'lib/VNWeb/TT/TagPage.pm')
-rw-r--r-- | lib/VNWeb/TT/TagPage.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VNWeb/TT/TagPage.pm b/lib/VNWeb/TT/TagPage.pm index 80b14d8d..bd545c98 100644 --- a/lib/VNWeb/TT/TagPage.pm +++ b/lib/VNWeb/TT/TagPage.pm @@ -117,10 +117,7 @@ sub vns_ { } } - if(auth && !$opt->{f}{query} && !defined tuwf->reqGet('f')) { - my $def = tuwf->dbVali('SELECT query FROM saved_queries WHERE qtype = \'v\' AND name = \'\' AND uid =', \auth->uid); - $opt->{f} = tuwf->compile({ advsearch => 'v' })->validate($def)->data if $def; - } + $opt->{f} = advsearch_default 'v' if !$opt->{f}{query} && !defined tuwf->reqGet('f'); my $where = sql 'tvi.tag =', \$t->{id}, 'AND NOT v.hidden AND tvi.spoiler <=', \$opt->{m}, 'AND', $opt->{f}->sql_where(); |