-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.41
-
None
-
None
Steps to reproduce
- Go to a content app definition file (it happens for all, but I will reproduce the steps for Categories app)
- Edit the categories-app.yaml file
- At the AddCategory" action, include under the _notDeleted rule the following:
hasNode: $type: jcrHasChildrenRule nodeTypes: - mgnl:category negate: true
- Now set the displayName as required field (this is for allowing the Cancel action)
- Go to Categories App, select a Category which has no Childs and check the _Add category" action is enabled
- Click on it and try to save the dialog (check the required field is highlighted)
- Close the detail subApp and check that the Add category action is disabled
- If you click on another category and back to the one you tried to create the nested category, you will se the action is enabled again
For pages app:
- Go to Resources app and edit the pages-app definition file
- At the "Add" action, include under the NotDeleted rule the following snippet:
hasNode: $type: jcrHasChildrenRule negate: true
- Now go to pages app, select a page with no Childs (as /travel/destinations) and click on the Add page action.
- Full fill the first Dialog screen (Page name and template) and click on "Next"
- Click on "Cancel"
- Check the "Add page" action is disabled
Expected results
You do not need to refresh the browser or switch between items to get the action enabled again
Actual results
The action is disabled till you perform a browser refresh or switch between items
Workaround
The mentioned above
Development notes
N/A
Acceptance criteria