Compare also the record rows to reconstruct tree view

As the row keeps a link to the record, the records of the group could have been
replaced by new records with exactly the same length.
This commit is contained in:
Cédric Krier committed 2015-04-03 19:01:01 +02:00
1 parent 61a891d103
commit 81adc7d0db
1 file changed
+4 -1
+4 -1
View File
@@ -266,7 +266,10 @@
}
expanded = expanded || [];
if (this.screen.group.length != this.rows.length) {
if ((this.screen.group.length != this.rows.length) ||
!Sao.common.compare(this.screen.group, this.rows.map(function(row) {
return row.record;
}))) {
this.construct(selected, expanded);
}