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

[erp5_web_renderjs_ui] Fix getContent for checkbox

parent f5a82cf3
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
input; input;
if (this.state.editable) { if (this.state.editable) {
input = this.element.querySelector('input'); input = this.element.querySelector('input');
if (input.value !== undefined) { if (this.state.type === 'checkbox') {
result[input.getAttribute('name')] = input.value;
} else if (input.checked !== undefined) {
result[input.getAttribute('name')] = (input.checked ? 1 : 0); result[input.getAttribute('name')] = (input.checked ? 1 : 0);
} else {
result[input.getAttribute('name')] = input.value;
} }
} }
return result; return result;
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>954.35661.46722.46711</string> </value> <value> <string>954.35694.60208.56524</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1476262019.89</float> <float>1476264002.68</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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