From c0bc337c401c093499dbe0bc94267d9765ae65b6 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 26 Sep 2015 18:39:05 +0200 Subject: [PATCH] core (xmlui): fixed submit_id returning None when its value is '' --- src/tools/xml_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/xml_tools.py b/src/tools/xml_tools.py index bcaf301e..d72644ef 100644 --- a/src/tools/xml_tools.py +++ b/src/tools/xml_tools.py @@ -1148,7 +1148,7 @@ class XMLUI(object): 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