1
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

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}