1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-16 15:21:33 +00:00

Add searching to date fields by default

This commit is contained in:
Darren Shepherd
2018-07-13 13:04:50 -07:00
parent c29825b3db
commit dca6c2e43d

View File

@@ -99,6 +99,8 @@ func (s *Schemas) setupFilters(schema *Schema) {
switch field.Type { switch field.Type {
case "enum": case "enum":
mods = []ModifierType{ModifierEQ, ModifierNE, ModifierIn, ModifierNotIn} mods = []ModifierType{ModifierEQ, ModifierNE, ModifierIn, ModifierNotIn}
case "date":
fallthrough
case "dnsLabel": case "dnsLabel":
fallthrough fallthrough
case "hostname": case "hostname":