Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
4.1.0
-
None
-
None
-
Tiger Sprint 137
Description
A channel can be deleted if it's channel node has the property 'hst:deletable' set to 'true'. A blueprint can also contain a channel node. However, the 'hst:deletable' property of a channel node in a blueprint is not copied to the channel node when a new channel is created. That should happen, so developers can easily mark blueprints as "creating deletable channels".
Steps to reproduce:
- Start the CMS of the HAP branch 'feature/delete-channel'
- Login as admin
- Navigate to 'Channels' and click 'Add channel'
- Select the blueprint 'Website'
- Give it a name ('test') and a URL ('http://localhost/test') and click 'Create channel'
- Edit the new 'test' channel
Expected: the toolbar has a 'Channel' button with a 'Delete' option in the menu
Actual: the toolbar does not have a 'Channel' button
In the console you can see that the node /hst:hst/hst:blueprints/website/hst:channel has 'hst:deletable' set to true, but the node /hst:hst/hst:channels/test does not have this property set.