-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
2 - Long term
-
3 - Complex
In the Ametys.ribbon.element.ui.CommonController tool-enable-on-status works with the tool-role parameter.
If tool-role match only one possible tool, it works as expected.
But if tool-role regexp matches several tools, the controller can be unconsistent in the mode active or open of the tool role parameter : tool-enable-on-status.
One simple example :
- Use a controller with a tool-role that match two tools, in the open mode -> <tool-role>^(A|B)$</tool-role> <tool-enable-on-status>open</tool-enable-on-status>
- Open tool A, the controller will be enabled.
- Open tool B, the controller stays enabled.
- Close tool A or B, the controller is disabled but should have stayed enabled.
This problem is the same with the activate mode.
The controller has been implemented to works only on one tool even if the tool-role regexp could match several tools.
No problem with the focus mode since only one tool can be focused at the same time.