changeset 1531:51dec65ec62c

core (xmlui): fixed submit_id returning None when its value is ''
author Goffi <goffi@goffi.org>
date Sat, 26 Sep 2015 18:39:05 +0200
parents 94cd4d242dc5
children 4c558a3fe052
files src/tools/xml_tools.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Sat Sep 26 15:00:27 2015 +0200
+++ b/src/tools/xml_tools.py	Sat Sep 26 18:39:05 2015 +0200
@@ -1148,7 +1148,7 @@
                 top_element.removeAttribute("submit")
             except NotFoundErr:
                 pass
-        elif value:  # submit_id can be the empty string to bypass form restriction
+        else:  # submit_id can be the empty string to bypass form restriction
             top_element.setAttribute("submit", value)
 
     @property