diff --git a/core/modules/filters/unknown.js b/core/modules/filters/unknown.js index 9d92282df..f28e4b54b 100644 --- a/core/modules/filters/unknown.js +++ b/core/modules/filters/unknown.js @@ -20,6 +20,7 @@ var fieldFilterOperatorFn = require("$:/core/modules/filters/field.js").field; Export our filter function */ exports["[unknown]"] = function(source,operator,options) { + // Check for a user defined filter operator if(operator.operator.charAt(0) === ".") { var customDefinition = options.widget && options.widget.getVariableInfo && options.widget.getVariableInfo(operator.operator); if(customDefinition && customDefinition.srcVariable && customDefinition.srcVariable.isFunctionDefinition) { @@ -43,6 +44,7 @@ exports["[unknown]"] = function(source,operator,options) { } } } + // Otherwise, use the "field" operator return fieldFilterOperatorFn(source,operator,options); };