page list reset select2 multi-selected values. #2518

Closed
opened 2025-12-29 18:19:35 +01:00 by adam · 0 comments
Owner

Originally created by @a31amit on GitHub (Apr 15, 2019).

Environment

  • Python version: 3.7
  • NetBox version: 2.5.10

Paging results and changing the list from 50 to more devices resets back all search results and using last value by alphabet to search.

It seems like it is affecting to all multiple select options such as site, tenant, model.

Steps to Reproduce

  1. Make sure you have default devices show as 50 in dcim/devices and have more than 50 devices.
  2. filter devices with any of multi-select fields such as site, tenants, manufacture, at-least 2 values in the same field.
  3. change page list size from 50 to 100.
  4. It displays results for only for one value. last value in alphabet order always.
  5. search boxes also show values for only 1 item rather all those items

Expected Behavior

It should show results from both or all items used in the filter.

Observed Behavior

It displays results for only for one value. last value in alphabet order always.
Hence page list & multi-select not showing all the results.

Originally created by @a31amit on GitHub (Apr 15, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.7 * NetBox version: 2.5.10 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> Paging results and changing the list from 50 to more devices resets back all search results and using last value by alphabet to search. It seems like it is affecting to all multiple select options such as site, tenant, model. ### Steps to Reproduce 1. Make sure you have default devices show as 50 in dcim/devices and have more than 50 devices. 2. filter devices with any of multi-select fields such as site, tenants, manufacture, at-least 2 values in the same field. 3. change page list size from 50 to 100. 4. It displays results for only for one value. last value in alphabet order always. 5. search boxes also show values for only 1 item rather all those items <!-- What did you expect to happen? --> ### Expected Behavior It should show results from both or all items used in the filter. <!-- What happened instead? --> ### Observed Behavior It displays results for only for one value. last value in alphabet order always. Hence page list & multi-select not showing all the results.
adam added the type: bugstatus: accepted labels 2025-12-29 18:19:35 +01:00
adam closed this issue 2025-12-29 18:19:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2518