mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Ebook tags: Store UrlName so it can be queried
This commit is contained in:
parent
7339255d5f
commit
7d8cfd351e
3 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue