keep previous input, if "new poll" failed
This commit is contained in:
parent
ea317bbd13
commit
3d9db1d05f
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ def new_poll(submit=None, cancel=None, author=None, title=None, description=None
|
|||
errors = errors_packed.unpack_errors()
|
||||
if errors:
|
||||
value_dict["errors"] = errors
|
||||
return render("poll_new.html", **value_dict)
|
||||
return render("poll_new.html", input_data=data, **value_dict)
|
||||
else:
|
||||
# create the new poll
|
||||
hash_key = get_new_hash_key()
|
||||
|
|
Loading…
Reference in a new issue