Description of problem:
Incorrect flash message when button is deleted
Version-Release number of selected component (if applicable):
5.11.0.25, also present in 5.10.10
How reproducible:
100%
Steps to Reproduce:
1. Add a generic object class
2. Create a button under the class
3. Delete the button
Actual results:
The flash message reads "Button:"undefined" was successfully deleted"
Expected results:
The flash message should read "Button: <button_name> was successfully deleted"
Additional info:
The attached gif also contains bug 1753281