mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fix: humhub.ui.filter.getActiveFilterCount with exclude array option
This commit is contained in:
parent
2dc3c2d797
commit
93268cec48
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user