1
0
Fork 0

Set active a category of a post.

This commit is contained in:
Alexander Andreev 2023-05-23 03:03:04 +04:00
parent f6db24b12a
commit 73cd9cd05b
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ block content
form.edit
select(name='category' required='')
each category in categories
if (category.ID == 1)
if (category.ID == post.Category.ID)
option(value=category.ID selected='') #{category.Name}
else
option(value=category.ID) #{category.Name}