Duplicate displaynames cause problems in Dropdown
moreamazingnick opened this issue · 1 comments
moreamazingnick commented
Describe the bug
Duplicate displaynames cause problems in Dropdown
To Reproduce
Example file
### Business Process Config File ###
#
# Owner : nicolas
# AddToMenu : yes
# Statetype : soft
#
###################################
Storage1 =
display 0;Storage1;Storage
Database1 = Storage1
display 1;Database1;Database
Storage2 =
display 0;Storage2;Storage
Webserver = Storage2
display 1;Webserver;Webserver
- Create a BP with duplicate Service Displaynames (example file)
- Try to add Storage to another Process
- Can't differentiate which is which
Expected behavior
Render unique indetifier too for example in brackets
Screenshots
![Screenshot 2023-11-17 132346](https://private-user-images.githubusercontent.com/29682206/283800416-ecdd430c-cb15-4c37-b84b-d6c330e5efc2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMjUzMTMsIm5iZiI6MTcyMzMyNTAxMywicGF0aCI6Ii8yOTY4MjIwNi8yODM4MDA0MTYtZWNkZDQzMGMtY2IxNS00YzM3LWI4NGItZDZjMzMwZTVlZmMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEwVDIxMjMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5NTE1ZGQ1MDE4NzU0MDQwMTIwOTZiNGJmNTllNzg0ZjE5OTlmMTBiNTA1ODgxZDkxZjJiNjgwZjQ1NjZhYzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WelJma9cAKTZkpcWK37tZK3Rnr_Q-0oGVkxb030i43Q)
![Screenshot 2023-11-17 132422](https://private-user-images.githubusercontent.com/29682206/283800410-0d374731-5a51-49c0-bb30-086a88fa4b69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMjUzMTMsIm5iZiI6MTcyMzMyNTAxMywicGF0aCI6Ii8yOTY4MjIwNi8yODM4MDA0MTAtMGQzNzQ3MzEtNWE1MS00OWMwLWJiMzAtMDg2YTg4ZmE0YjY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEwVDIxMjMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0OWFhODliYWU0NzBkOWM2OTQ2MmY1N2YwNzJjMjE3NWFhY2M4OWE1MjYzNzY3OTBmMmI0NWJiMjc5Nzc1MWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Mg21e8WcruPQp1ZjW_sJ0HsY0qNpB_zUreonssExAfM)
Your Environment
Include as many relevant details about the environment you experienced the problem in
- Icinga Web 2 version and modules (System - About): 2.12.1
- Business Process 2.5.0
- Web browser used: Chrome
moreamazingnick commented