FIX: send category-id if present when deleting category

This commit is contained in:
Arpit Jalan 2015-05-21 11:14:00 +05:30
parent 01ebe9ce69
commit 836c7b4251
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Discourse.Category = Discourse.Model.extend({
}.property("permissions"),
destroy: function() {
return Discourse.ajax("/categories/" + (this.get('slug') || this.get('id')), { type: 'DELETE' });
return Discourse.ajax("/categories/" + (this.get('id') || this.get('slug')), { type: 'DELETE' });
},
addPermission: function(permission){