FIX: Category group picker was broken with category path rename

This commit is contained in:
Robin Ward 2014-10-16 14:30:41 -04:00
parent d0c35633cb
commit bde0820cd4
1 changed files with 1 additions and 1 deletions

View File

@ -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);