Skip to content

Commit

Permalink
Fix categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Jan 3, 2017
1 parent f09b01e commit 67bbe19
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controllers/manager.js
Expand Up @@ -322,8 +322,14 @@ function json_products_codelists() {

var obj = {};
obj.manufacturers = F.global.manufacturers;
obj.categories = F.global.categories;
obj.templates = F.config.custom.templatesproducts;
obj.categories = [];

for (var i = 0, length = F.global.categories.length; i < length; i++) {
var item = F.global.categories[i];
obj.categories.push({ name: item.name, level: item.level, count: item.count, linker: item.linker });
}

self.json(obj);
}

Expand Down

0 comments on commit 67bbe19

Please sign in to comment.