Ebook tags: Store UrlName so it can be queried

This commit is contained in:
Mike Colagrosso 2024-09-09 22:34:36 -06:00 committed by Alex Cabal
parent 7339255d5f
commit 7d8cfd351e
3 changed files with 7 additions and 4 deletions

View file

@ -40,7 +40,7 @@ class Library{
if(sizeof($tags) > 0 && !in_array('all', $tags)){ // 0 tags means "all ebooks"
$joinTags = 'inner join EbookTags et using (EbookId)
inner join Tags t using (TagId)';
$whereCondition .= ' AND t.Name in ' . Db::CreateSetSql($tags) . ' ';
$whereCondition .= ' AND t.UrlName in ' . Db::CreateSetSql($tags) . ' ';
$params = $tags;
}