mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 07:54:42 +08:00
FIX: Edit category should use the id always in case two categories have
the same slug.
This commit is contained in:
@ -114,7 +114,7 @@ var ApplicationRoute = Em.Route.extend({
|
||||
Discourse.Route.showModal(router, 'editCategory', category);
|
||||
router.controllerFor('editCategory').set('selectedTab', 'general');
|
||||
} else {
|
||||
Discourse.Category.reloadBySlugOrId(category.get('slug') || category.get('id')).then(function (c) {
|
||||
Discourse.Category.reloadById(category.get('id')).then(function (c) {
|
||||
Discourse.Site.current().updateCategory(c);
|
||||
Discourse.Route.showModal(router, 'editCategory', c);
|
||||
router.controllerFor('editCategory').set('selectedTab', 'general');
|
||||
|
Reference in New Issue
Block a user