Fix texture pack license not present issue

Fixes #236
This commit is contained in:
rubenwardy 2020-09-22 21:53:04 +01:00
parent a3b3525b78
commit 2aa0c3cc84
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@ def create_edit(author=None, name=None):
form.tags.data = list(package.tags)
form.content_warnings.data = list(package.content_warnings)
if request.method == "POST" and form.type.data == PackageType.TXP:
form.license.data = form.media_license.data
if request.method == "POST" and form.validate():
wasNew = False
if not package: