Skip to content

Commit 3127cd0

Browse files
committed
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 ietf-tools#788. - Legacy-Id: 4035
1 parent 2d64072 commit 3127cd0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/idrfc/views_ballot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ def edit_positionREDESIGN(request, name):
269269
pos.comment = clean["comment"].rstrip()
270270
pos.comment_time = old_pos.comment_time if old_pos else None
271271
pos.discuss = clean["discuss"].rstrip()
272+
if pos.pos_id != "discuss":
273+
pos.discuss = ""
272274
pos.discuss_time = old_pos.discuss_time if old_pos else None
273275

274276
changes = []

0 commit comments

Comments
 (0)