changeset af05492be97a in sao:6.4
details: https://hg.tryton.org/sao?cmd=changeset&node=af05492be97a
description:
Fill size limit with group length when undefined
The size_limit can be evaluated as undefined because the attribute is
set when
it is None on the server side.
issue11782
review424131003
(grafted from fed9fc5cfdfb69e30ab166b4a121c9a201e761fb)
diffstat:
src/view/form.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4c959193dcac -r af05492be97a src/view/form.js
--- a/src/view/form.js Sat Oct 22 01:03:48 2022 +0200
+++ b/src/view/form.js Wed Oct 26 23:30:54 2022 +0200
@@ -3360,7 +3360,7 @@
size_limit = record.expr_eval(this.attributes.size);
}
if (this._readonly) {
- if (size_limit === null) {
+ if ((size_limit === null) || (size_limit === undefined)) {
size_limit = this.screen.group.length;
} else {
size_limit = Math.min(