changeset 5531:a7838f68fbcd

partially revert 232cad689a08, checkbox handling was ok, add comment
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 13 Feb 2010 18:52:25 +0100
parents 970d94ea19f2
children 7252009186c0 1f638ed400a0
files MoinMoin/userprefs/prefs.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/prefs.py	Sat Feb 13 18:00:59 2010 +0100
+++ b/MoinMoin/userprefs/prefs.py	Sat Feb 13 18:52:25 2010 +0100
@@ -200,7 +200,8 @@
                 try:
                     value = int(value)
                 except ValueError:
-                    value = 0
+                    # value we got is crap, do not setattr this value, just pass
+                    pass
                 else:
                     setattr(request.user, key, value)