changeset fed9fc5cfdfb in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=fed9fc5cfdfb
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
diffstat:

 src/view/form.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 609330a911b6 -r fed9fc5cfdfb src/view/form.js
--- a/src/view/form.js  Wed Oct 26 23:27:55 2022 +0200
+++ b/src/view/form.js  Wed Oct 26 23:30:54 2022 +0200
@@ -3364,7 +3364,7 @@
                     size_limit = record.expr_eval(this.attributes.size);
                 }
                 if (this._readonly || !this.create_access) {
-                    if (size_limit === null) {
+                    if ((size_limit === null) || (size_limit === undefined)) {
                         size_limit = this.screen.group.length;
                     } else {
                         size_limit = Math.min(

Reply via email to