From c46edeb1d2995c0d8ac6241af4bb9f795e145cb1 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 2 Jan 2002 02:42:59 +0000 Subject: process_form(): Make sure all the possible form item values are in the assertion. This fixes subscription approvals. --- Mailman/Cgi/admindb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index c574bedad..d45671cf2 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -629,8 +629,9 @@ def process_form(mlist, doc, cgidata): request_id = int(k) except ValueError: continue - if v not in (mm_cfg.DEFER, mm_cfg.APPROVE, - mm_cfg.REJECT, mm_cfg.DISCARD): + if v not in (mm_cfg.DEFER, mm_cfg.APPROVE, mm_cfg.REJECT, + mm_cfg.DISCARD, mm_cfg.SUBSCRIBE, mm_cfg.UNSUBSCRIBE, + mm_cfg.ACCEPT, mm_cfg.HOLD): continue # Get the action comment and reasons if present. commentkey = 'comment-%d' % request_id -- cgit v1.3.1