This commit is contained in:
Nicolas Siver
2015-07-07 20:10:44 +03:00
parent 1e2f4ae5e9
commit 9d0a0538a6

View File

@@ -23,7 +23,7 @@ module.exports = function(Categories) {
}
plugins.fireHook('filter:category.update', {category:modifiedFields}, function(err, categoryData) {
var category = categoryData.category;
var category = categoryData.category;
var fields = Object.keys(category);
async.each(fields, function(key, next) {
updateCategoryField(cid, key, category[key], next);