changeset 141669cccb14 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=141669cccb14
description:
        Do not validate current record when selecting row when it is null

        issue11812
        review431801003
        (grafted from f791989365821f480365a19c372054ab2b5317df)
diffstat:

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

diffs (12 lines):

diff -r 1d57918d24ef -r 141669cccb14 src/view/tree.js
--- a/src/view/tree.js  Fri Oct 14 13:12:44 2022 +0200
+++ b/src/view/tree.js  Sat Oct 22 01:03:48 2022 +0200
@@ -1777,7 +1777,7 @@
 
             var current_record = this.tree.screen.current_record;
             if ((this.record != current_record) &&
-                !current_record.validate(
+                current_record && !current_record.validate(
                     this.tree.get_fields(), false, false, true)) {
                 return;
             }

Reply via email to