From 0cd850265b567a53921da70bf6d07e4330500f34 Mon Sep 17 00:00:00 2001 From: citrons Date: Sun, 8 Aug 2021 01:16:59 +0000 Subject: in the forum settings page, the "unlisted?" box is checked if the forum is already unlisted --- apioforum/forum.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apioforum/forum.py b/apioforum/forum.py index 108f0ba..084c75d 100644 --- a/apioforum/forum.py +++ b/apioforum/forum.py @@ -361,12 +361,14 @@ def forum_config_page(forum, create=False): if create: name = "" desc = "" + unlisted = False else: name = forum['name'] desc = forum['description'] + unlisted = forum['unlisted'] cancel_link = url_for('forum.view_forum',forum_id=forum['id']) return render_template("edit_forum.html",create=create, - name=name,description=desc,cancel_link=cancel_link) + name=name,description=desc,unlisted=unlisted,cancel_link=cancel_link) @forum_route("edit",methods=["GET","POST"]) @requires_bureaucrat -- cgit v1.2.3