Steps to reproduce :
- If the JcrViewTool is opened, close it and restart your app.
- At this point, "Ametys.repository.RepositoryApp.getCurrentWorkspace()" would normally return null. (which is the reason of the bug).
- Open the AmetysViewTool, select a node and click on the "Open JCR node" action button
This is due to the combobox of the JcrViewTool which was never initialized and thus Ametys.repository.RepositoryApp.currentWorkspace is still _null
I'm not able to reproduce the steps as in step 3 after clicking on the ribbon button, nothing happens and I get a JS error:
Uncaught TypeError: Cannot read property 'open' of undefined act @ AmetysActions.js:39 (anonymous function) @ ext-all-debug.js:6696 executeFunctionByName @ Ametys.js:409 onPress @ ButtonController.js:512 (anonymous function) @ ext-all-debug.js:6696 callback @ ext-all-debug.js:8497 fireHandler @ ext-all-debug.js:132238 onClick @ ext-all-debug.js:132226 fire @ ext-all-debug.js:20326 fire @ ext-all-debug.js:32684 publish @ ext-all-debug.js:32660 doDelegatedEvent @ ext-all-debug.js:32710 onDelegatedEvent @ ext-all-debug.js:32697 (anonymous function) @ ext-all-debug.js:6696