From d90f3649a6295d03ba210bd0d702af1be3a957f8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 21 May 2015 14:07:45 -0400 Subject: [PATCH] minor tweak to retrieval of category listing in ACP so that hidden categories (those with order of -1) are not retrieved --- src/controllers/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/admin.js b/src/controllers/admin.js index 1df316267a..94ae787145 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -154,7 +154,7 @@ adminController.categories.getAll = function(req, res, next) { disabled = []; async.waterfall([ - async.apply(db.getSortedSetRange, 'categories:cid', 0, -1), + async.apply(db.getSortedSetRangeByScore, 'categories:cid', 0, -1, 0, Date.now()), async.apply(categories.getCategoriesData), function(categories, next) { plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categories}, next);