diff --git a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js index 510d5aa2b22..4048a6ecbdd 100644 --- a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js +++ b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js @@ -70,9 +70,9 @@ function genericObjectDefinitionToolbarController(API, miqService, $window) { .catch(miqService.handleFailure); } - function postAction(response) { - var entityName = response.name; - var saveMsg = sprintf(__('%s:"%s" was successfully deleted'), toolbar.entity, entityName); + function postAction() { + var entityName = toolbar.entityName; + var saveMsg = sprintf(__('%s: "%s" was successfully deleted'), toolbar.entity, entityName); if (toolbar.redirectUrl) { miqService.redirectBack(saveMsg, 'success', toolbar.redirectUrl); } else {