@@ -723,11 +723,17 @@ func (afo *GormAdminFilterObjects) Search(field *Field, searchString string) {
723
723
if searchField .Field .FieldType .Kind () == reflect .Struct {
724
724
afo .Search (searchField .Field , searchString )
725
725
continue
726
+ } else if (fieldType == reflect .Uint ) || (fieldType == reflect .Uint64 ) || (fieldType == reflect .Uint32 ) || (fieldType == reflect .Int64 ) || (fieldType == reflect .Int ) || (fieldType == reflect .Int32 ) || (fieldType == reflect .Float32 ) || (fieldType == reflect .Float64 ) {
727
+ operator := ExactGormOperator {}
728
+ operator .Build (afo .GetUadminDatabase ().Adapter , fullGormOperatorContext , searchField .Field , searchString , & SQLConditionBuilder {Type : "or" })
729
+ operator = ExactGormOperator {}
730
+ operator .Build (afo .GetUadminDatabase ().Adapter , paginatedGormOperatorContext , searchField .Field , searchString , & SQLConditionBuilder {Type : "or" })
731
+ } else {
732
+ operator := IContainsGormOperator {}
733
+ operator .Build (afo .GetUadminDatabase ().Adapter , fullGormOperatorContext , searchField .Field , searchString , & SQLConditionBuilder {Type : "or" })
734
+ operator = IContainsGormOperator {}
735
+ operator .Build (afo .GetUadminDatabase ().Adapter , paginatedGormOperatorContext , searchField .Field , searchString , & SQLConditionBuilder {Type : "or" })
726
736
}
727
- operator := IContainsGormOperator {}
728
- operator .Build (afo .GetUadminDatabase ().Adapter , fullGormOperatorContext , searchField .Field , searchString , & SQLConditionBuilder {Type : "or" })
729
- operator = IContainsGormOperator {}
730
- operator .Build (afo .GetUadminDatabase ().Adapter , paginatedGormOperatorContext , searchField .Field , searchString , & SQLConditionBuilder {Type : "or" })
731
737
}
732
738
afo .SetFullQuerySet (fullGormOperatorContext .Tx )
733
739
afo .SetPaginatedQuerySet (fullGormOperatorContext .Tx )
0 commit comments