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
This commit is contained in:
Cédric Krier
2026-07-17 12:58:29 +02:00
parent 2e206dba7e
commit 14503c1683
+1 -1
View File
@@ -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(