diff --git a/app/assets/javascripts/discourse/controllers/edit_category_controller.js b/app/assets/javascripts/discourse/controllers/edit_category_controller.js index 67bf51dbc..557c8540f 100644 --- a/app/assets/javascripts/discourse/controllers/edit_category_controller.js +++ b/app/assets/javascripts/discourse/controllers/edit_category_controller.js @@ -153,7 +153,7 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M $('#discourse-modal').modal('hide'); bootbox.confirm(Em.String.i18n("category.delete_confirm"), Em.String.i18n("no_value"), Em.String.i18n("yes_value"), function(result) { if (result) { - categoryController.get('category').destroy().then(function(){ + categoryController.get('model').destroy().then(function(){ // success Discourse.URL.redirectTo("/categories"); }, function(jqXHR){