mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
Merge pull request #3495 from techAPJ/patch-2
FIX: send category-id if present when deleting category
This commit is contained in:
commit
358f5cacf9
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue
Block a user