mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: Category group picker was broken with category path rename
This commit is contained in:
parent
d0c35633cb
commit
bde0820cd4
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export default Ember.Component.extend({
|
|||
},
|
||||
onChangeItems: function(items) {
|
||||
var categories = _.map(items, function(link) {
|
||||
var slug = link.match(/href=['"]\/category\/([^'"]+)/)[1];
|
||||
var slug = link.match(/href=['"]\/c\/([^'"]+)/)[1];
|
||||
return Discourse.Category.findSingleBySlug(slug);
|
||||
});
|
||||
self.set("categories", categories);
|
||||
|
|
Loading…
Reference in a new issue