|
|
@ -66,7 +66,10 @@ modsController.flags.list = async function (req, res, next) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Pagination doesn't count as a filter
|
|
|
|
// Pagination doesn't count as a filter
|
|
|
|
if (Object.keys(filters).length === 2 && filters.hasOwnProperty('page') && filters.hasOwnProperty('perPage')) {
|
|
|
|
if (
|
|
|
|
|
|
|
|
(Object.keys(filters).length === 1 && filters.hasOwnProperty('page')) ||
|
|
|
|
|
|
|
|
(Object.keys(filters).length === 2 && filters.hasOwnProperty('page') && filters.hasOwnProperty('perPage'))
|
|
|
|
|
|
|
|
) {
|
|
|
|
hasFilter = false;
|
|
|
|
hasFilter = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -130,6 +133,7 @@ modsController.flags.detail = async function (req, res, next) {
|
|
|
|
}, {}),
|
|
|
|
}, {}),
|
|
|
|
title: '[[pages:flag-details, ' + req.params.flagId + ']]',
|
|
|
|
title: '[[pages:flag-details, ' + req.params.flagId + ']]',
|
|
|
|
categories: results.categories,
|
|
|
|
categories: results.categories,
|
|
|
|
|
|
|
|
filters: req.session.flags_filters || [],
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|