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

@ -53,10 +53,11 @@ class EbookTag extends Tag{
$this->Validate();
Db::Query('
INSERT into Tags (Name, Type)
INSERT into Tags (Name, UrlName, Type)
values (?,
?,
?)
', [$this->Name, $this->Type]);
', [$this->Name, $this->UrlName, $this->Type]);
$this->TagId = Db::GetLastInsertedId();
}