Skip to content

External filter expects lower case field names #523

Closed
@r7lemieux

Description

@r7lemieux

I am using an external filter widget and passing the name of the fields and criteria into filterText. If the filter text contains upperCases, the fields are not recognized.

The problem appear to be in buildSearchConditions where the columnDisplay is set:
columnDisplay: columnName.replace(/\s+/g, '').toLowerCase(),

Then in evalFilter:
var col = self.fieldMap[condition.columnDisplay];

What is the intend of columnDisplay? Why set the field to lowercase ? Could we just remove columnDisplay and use the field name instead ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions