Delete errors

This commit is contained in:
Сергей Савельев
2015-04-01 18:22:55 +03:00
parent 18c5354ec7
commit 6b3b44e2fc
2 changed files with 17 additions and 17 deletions

View File

@@ -23,7 +23,7 @@ module.exports = function(Categories) {
description: ( data.description ? data.description : '' ), description: ( data.description ? data.description : '' ),
icon: ( data.icon ? data.icon : '' ), icon: ( data.icon ? data.icon : '' ),
bgColor: data.bgColor || colours[0], bgColor: data.bgColor || colours[0],
color: ( data.color ? data.color : '' ), color: data.color || colours[1],
slug: slug, slug: slug,
parentCid: ( data.parentCid ? data.parentCid : 0 ), parentCid: ( data.parentCid ? data.parentCid : 0 ),
topic_count: 0, topic_count: 0,

View File

@@ -136,7 +136,7 @@ adminController.categories.get = function(req, res, next) {
return next(err); return next(err);
} }
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, category: data.category[0], privileges: data.privileges}, function(err, data) { plugins.fireHook('filter:admin.category.get', {req: req, res: res, category: data.category[0], privileges: data.privileges}, function(err, data) {
if (err) { if (err) {
return next(err); return next(err);
} }
@@ -158,7 +158,7 @@ adminController.categories.getAll = function(req, res, next) {
return next(err); return next(err);
} }
plugins.fireHook('filter:admin.categories.getAll', {req: req, res: res, categories: categoryData}, function(err, data) { plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categoryData}, function(err, data) {
if (err) { if (err) {
return next(err); return next(err);
} }