major
minor
major
minor
Sometimes, tab bars in a view may not be visible—for example, because you lack the necessary permissions. In this case, the breadcrumb also does not change when you select a new tab from the visible parent tab. The problem lies in com.top_logic.layout.tree.model.ComponentTreeModel.changeSelection(DefaultMutableTLTreeNode). A TabBarModel is found, but since the tab bar is not visible, no selection is made. As a result, the breadcrumb is not re-rendered. This behavior can be observed in the TL demo if you are not logged in as the root user and navigate to the “Structures” tab. In that case, either no breadcrumb is displayed at all, or an outdated one is shown:
Fix
In com.top_logic.layout.tree.model.ComponentTreeModel.changeSelection(DefaultMutableTLTreeNode), if a tab bar is found but no tab is selected (for example, because it is not visible), the current path is set as the breadcrumb without the tab bar.
Test
Create a new user without assigning any special permissions. Log in with this user and view the breadcrumbs on the Structures > Type Demo page. These must be set to "Structures: Type Demo" as soon as this tab is opened.