Commit 6374b820 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Fix getContent for checkbox

parent f5a82cf3
......@@ -71,10 +71,10 @@
input;
if (this.state.editable) {
input = this.element.querySelector('input');
if (input.value !== undefined) {
result[input.getAttribute('name')] = input.value;
} else if (input.checked !== undefined) {
if (this.state.type === 'checkbox') {
result[input.getAttribute('name')] = (input.checked ? 1 : 0);
} else {
result[input.getAttribute('name')] = input.value;
}
}
return result;
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.35661.46722.46711</string> </value>
<value> <string>954.35694.60208.56524</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1476262019.89</float>
<float>1476264002.68</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment