Skip to content

Commit 551f61b

Browse files
committed
Fixed a possible KeyError bug for missing form field 'by'.
- Legacy-Id: 6045
1 parent e46220a commit 551f61b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/idrfc/views_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def clean(self):
9494
q['by'] = None
9595
if q['by'] == 'state' and not (q.get("state") or q.get('substate')):
9696
q['by'] = None
97+
else:
98+
q['by'] = None
9799
# Reset other fields
98100
for k in ('author','group', 'area', 'ad'):
99101
if k != q['by']:

0 commit comments

Comments
 (0)