changeset 59c9c145636e in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=59c9c145636e
description:
Set from with a record in select_records when empty
from must be a record as it is compared against other records but it
should be
set only if there is a to (to make a valid range).
diffstat:
src/view/tree.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 8edae76144ab -r 59c9c145636e src/view/tree.js
--- a/src/view/tree.js Sun Mar 31 00:15:10 2019 +0100
+++ b/src/view/tree.js Mon Apr 01 19:10:36 2019 +0200
@@ -598,8 +598,8 @@
return records;
},
select_records: function(from, to) {
- if (!from) {
- from = this.rows[0];
+ if (!from && to) {
+ from = this.rows[0].record;
}
if (from && to) {
var from_idx = from.get_index_path(this.screen.group);