Commit 913c2abb authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_web_renderjs_ui: do not ignore a listbox configuration of 0 lines

This is intentional, and means that no limit should be applied (iow: an infinite
listbox). In this case, the limit parameter in the call to jIO should be set to 0,
not undefined, otherwise the parameter will be dropped in the AJAX request,
and later on be defaulted to 10 by ERP5Document_getHateoas.
parent 325c5563
......@@ -1214,7 +1214,7 @@
select_list.push("uid");
if (gadget.state.lines === 0) {
limit_options = undefined;
limit_options = 0;
} else {
limit_options = [gadget.state.begin_from, gadget.state.lines + 1];
}
......
......@@ -228,7 +228,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <unicode>zope</unicode> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>994.13949.44825.36573</string> </value>
<value> <string>1021.46754.58269.53777</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1629394496.1</float>
<float>1735631070.51</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