enhancement
critical
major
minor
minor
minor
#26259
Scriptrecorder template creation does not respond to new actions / Saves outdated work state
As a result of Ticket #26185, and in particular the change in r303564, the model type for the tl:TemplateCreateBuilder was changed from ActionContainer to tl:TLTreeNode.
If the user selects a node in the ActionTree and opens the dialog to create a template, the form with the actions uses the selected TLTreeNode as its model. If the user then creates the template or closes the dialog and records additional actions using the ScriptRecorder, the dialog for creating a template—which initially used the same selected TLTreeNode —does not contain the most up-to-date data. Specifically, the changes that occurred between the opening of the two dialogs are missing. The problem is that the FormComponent does not detect the change. Only the BusinessObject of the `TLTreeNode` has changed, but not the node itself. Consequently, the component assumes that its model has not changed and thus prevents the `tl:FormContext` from being rebuilt. This results in a potentially outdated state of the data.
Test
- Record a few actions
- Save the actions as a template using "Create Template"
- Record additional actions (do not close the Script Recorder window; just continue)
- Call up "Create Template" again
- Problem: The "Create Template" dialog box still contains the old values from the first save (path and actions). As a result, the current state of your work isn’t saved—instead, it saves something from before that (in this case, from step 2).