core (xmlui): fixed submit_id returning None when its value is ''

This commit is contained in:
Goffi 2015-09-26 18:39:05 +02:00
commit c0bc337c40

View file

@ -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