mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-24 06:51:29 +01:00
Fix crash on null release task_id
This commit is contained in:
parent
130d0bc7a0
commit
96b22744ec
@ -164,7 +164,7 @@ def edit_release_page(package, id):
|
|||||||
if package.checkPerm(current_user, Permission.CHANGE_RELEASE_URL):
|
if package.checkPerm(current_user, Permission.CHANGE_RELEASE_URL):
|
||||||
release.url = form["url"].data
|
release.url = form["url"].data
|
||||||
release.task_id = form["task_id"].data
|
release.task_id = form["task_id"].data
|
||||||
if release.task_id.strip() == "":
|
if release.task_id is not None:
|
||||||
release.task_id = None
|
release.task_id = None
|
||||||
|
|
||||||
if canApprove:
|
if canApprove:
|
||||||
|
Loading…
Reference in New Issue
Block a user