Fix: humhub.ui.filter.getActiveFilterCount with exclude array option

This commit is contained in:
buddh4 2020-10-08 15:10:42 +02:00
parent 2dc3c2d797
commit 93268cec48

View File

@ -262,7 +262,7 @@ humhub.module('ui.filter', function(module, require, $) {
var result = true;
if(options.exclude) {
if(object.isArray(options.exclude)) {
result = options.exclude.indexOf(input.getCategory()) <= 0;
result = options.exclude.indexOf(input.getCategory()) < 0;
} else {
result = input.getCategory() !== options.exclude;
}