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
This commit is contained in:
Cédric Krier
2026-07-17 12:58:29 +02:00
parent b10eee3181
commit 45611ca1fd
+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(