Detail
Detail
Bugfix
Detail
#25161
Target Label requires MainLayout when loading configuration
The tl:LayoutReference has a property "target-label" as part of ticket #25093, which is used to identify a reference when, for example, you want to edit the layout in-app.
The value of the configuration property is derived from the resource of the reference. For this purpose, the component for this resource is calculated from the component tree with the help of tl:MainLayout and the title is then taken from this as the label for the reference.
Deploying BPE, for example, creates a problem for this property. When the target label is resolved, the tl:ThreadContextManager has not yet been started, so there is no tl:DisplayContext and consequently no tl:MainLayout.
Test
- TL Demo or BPE should be able to be deployed without error message.
- /com.top_logic.demo/src/test/com/top_logic/demo/scripted/layout/TestLayoutEdit.script.xml