mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 08:47:15 +08:00
FEATURE: accept category_id as new-topic param to better support subcategory
This commit is contained in:
@ -148,8 +148,8 @@ const ApplicationRoute = Discourse.Route.extend(Discourse.OpenComposer, {
|
||||
this.render(w, {into: 'modal/topic-bulk-actions', outlet: 'bulkOutlet', controller: factory ? controllerName : 'topic-bulk-actions'});
|
||||
},
|
||||
|
||||
createNewTopicViaParams: function(title, body, category) {
|
||||
this.openComposerWithParams(this.controllerFor('discovery/topics'), title, body, category);
|
||||
createNewTopicViaParams: function(title, body, category_id) {
|
||||
this.openComposerWithParams(this.controllerFor('discovery/topics'), title, body, category_id);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user