Clear the discuss text if the position isn't discuss as we may get
some unintended text submitted from the browser if the previous position was discuss. Fixes #788. - Legacy-Id: 4035
This commit is contained in:
parent
2d640721a5
commit
3127cd0928
|
@ -269,6 +269,8 @@ def edit_positionREDESIGN(request, name):
|
|||
pos.comment = clean["comment"].rstrip()
|
||||
pos.comment_time = old_pos.comment_time if old_pos else None
|
||||
pos.discuss = clean["discuss"].rstrip()
|
||||
if pos.pos_id != "discuss":
|
||||
pos.discuss = ""
|
||||
pos.discuss_time = old_pos.discuss_time if old_pos else None
|
||||
|
||||
changes = []
|
||||
|
|
Loading…
Reference in a new issue