Skip to content

Saved filter doesn't save multiple choice values anymore #12270

@dreng

Description

@dreng

NetBox version

v3.4.8

Python version

3.9

Steps to Reproduce

  1. Go to Devices
  2. Click tab "Filters"
  3. Choose at least 2 locations and click "Search"
  4. On top of the result list, click "Save"
  5. Notice that there is only one location in the "Parameters" field

Expected Behavior

We get a single string while the behavior in v3.4.6 were to get a list. Either way I'd expect at least 2 values according to the chosen filter settings above, which is not the case.

Observed Behavior

Only one value is shown (and saved afterwards). This happens on the current demo site as well as in my development environment with the current develop branch.

Output of v3.4.6

{
"location_id": [
"33",
"34"
]
}

Output of v.3.4.8

{
"location_id": "34"
}

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