Do not validate current record when selecting row when it is null

issue11812
review431801003
(grafted from f791989365821f480365a19c372054ab2b5317df)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2022-10-22 01:03:48 +02:00
1 parent b8aaf478da
commit 9fa02292d2
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}