changeset 26932ac324f1 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=26932ac324f1
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 93dfb89ebcf6 -r 26932ac324f1 src/common/dataforms.py
--- a/src/common/dataforms.py   Sat Mar 05 09:25:28 2011 +0100
+++ b/src/common/dataforms.py   Sat Mar 05 09:40:01 2011 +0100
@@ -679,8 +679,8 @@
                     f.value = ''
                 # 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