From 733df9d2dd504cf386324eb1875e13f057218124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 1 Jun 2025 12:49:28 +0200 Subject: [PATCH] Use the configured display size when selected or expanded row are defined This ensure that we store on the view the selected/expanded rows by displaying them after a reload. Closes #14048 --- sao/src/view/tree.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index 5930bbac00..bfc1321714 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -888,6 +888,11 @@ this.display_size = Sao.config.display_size; } } + if (!this.display_size & + (!jQuery.isEmptyObject(selected) || + !jQuery.isEmptyObject(expanded))) { + this.display_size = Sao.config.display_size; + } let display_size = this.display_size || 0; var current_record = this.record; if (jQuery.isEmptyObject(selected) && current_record) {