This commit is contained in:
Son NK 2020-11-22 13:50:57 +01:00
parent bcdf522174
commit 836b602316

View file

@ -292,7 +292,7 @@ def update_alias(alias_id):
if "name" in data:
# to make sure alias name doesn't contain linebreak
new_name = data.get("name").replace("\n", "")
new_name = data.get("name")
if new_name:
new_name = new_name.replace("\n", "")
alias.name = new_name