changeset 375d3d2a65dc in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=375d3d2a65dc
description: don't remove false values from sent dataforms. Fixes #6765, see 
#6113

diffstat:

 src/common/dataforms.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 3e98fd816fdf -r 375d3d2a65dc src/common/dataforms.py
--- a/src/common/dataforms.py   Wed Jan 12 22:47:36 2011 +0100
+++ b/src/common/dataforms.py   Sat Mar 05 09:40:01 2011 +0100
@@ -628,8 +628,8 @@
                     f.values = ['']
                 # Keep all required fields
                 continue
-            if (hasattr(f, 'value') and not f.value) or (hasattr(f, 'values') \
-            and len(f.values) == 0):
+            if (hasattr(f, 'value') and not f.value and f.value != 0) or (
+            hasattr(f, 'values') and len(f.values) == 0):
                 to_be_removed.append(f)
             else:
                 del f.label
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to