From 14503c168354b0107219cc614fc102d90219f2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 17 Jul 2026 12:58:29 +0200 Subject: [PATCH] Compare tab against view index less or equals to 0 The view index may be -1 is the view is not yet displayed. Closes #14961 (grafted from 7267bae222e053d7ebfb59981ee13ae941b469dd) --HG-- branch : 8.0 --- sao/src/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sao/src/tab.js b/sao/src/tab.js index 8a426dd335..7cf75115db 100644 --- a/sao/src/tab.js +++ b/sao/src/tab.js @@ -827,7 +827,7 @@ } var compare = Sao.common.compare; return ( - (this.screen.view_index === 0) && + (this.screen.view_index <= 0) && (this.screen.model_name === attributes.model) && (this.attributes.res_id === attributes.res_id) && (compare(