Skip to content

Custom fields with default values appear as applied filters in object list views #8314

@jasonyates

Description

@jasonyates

NetBox version

3.1.2

Python version

3.8

Steps to Reproduce

Create a 'Selection' custom field with no default value applied to DCIM -> Sites
Visit /dcim/sites

Filter tab aways shows [1] filter applied. No filter shows applied on the table view itself

Screenshot 2022-01-11 at 16 00 11

Apply an actual filter, i.e. Status: Active
2 filters show applied. The one actually applied + the phantom custom field with an empty value

Screenshot 2022-01-11 at 16 02 29

Expected Behavior

Custom field filter should not be applied by default?

Observed Behavior

Filter tab aways shows [1] filter applied. No filter shows applied on the table view itself

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions