Created attachment 1616256 [details] All buttons deleted Description of problem: Deleting a custom button that is below another custom button in the accordion tree results in both buttons being deleted. Version-Release number of selected component (if applicable): 5.11.0.25 How reproducible: 100% Steps to Reproduce: 1. Create a generic object class 2. Create a custom button under this class, name "mybutton" 3. Create another custom button under this class name "abutton" 4. Delete button called "abutton" Actual results: All buttons are deleted Expected results: Only "abutton" should be deleted Additional info: See attached gif
Note: I am also seeing this BZ in 5.10.10
So if the first button is deleted, only one gets deleted, but if you pick the second to be deleted they both are. This isn't a problem with the API call. It looks like https://github.com/ManageIQ/manageiq-ui-classic/blob/dd153fa4ed80c9e544c84765cef79b4538deac25/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js#L57 is calling delete for multiple things.
Sorry, didn't intend to link to that specific line, just that file in general.
I am not seeing this bug on the most recent CFME 5.11.4.1 build. Therefore I've closed this BZ as WORKSFORME.