From 3127cd0928877ae6a0016b4d2cc1a2dcf816667f Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Mon, 5 Mar 2012 19:49:16 +0000 Subject: [PATCH] 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 --- ietf/idrfc/views_ballot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ietf/idrfc/views_ballot.py b/ietf/idrfc/views_ballot.py index 00b9446b1..16d45a9b8 100644 --- a/ietf/idrfc/views_ballot.py +++ b/ietf/idrfc/views_ballot.py @@ -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 = []