netbox icon indicating copy to clipboard operation
netbox copied to clipboard

editing selection of devices via quick search

Open GeertReijnders opened this issue 1 year ago • 2 comments

Deployment Type

Self-hosted

NetBox Version

v4.0.5

Python Version

3.12

Steps to Reproduce

  1. Click on devices

  2. type your searchwords in quick search

  3. click Select all ... devices matching query image

  4. click edit selected devices

  5. At the left upper corner you will see another amount of devices which are going to be edited. In the selected devices tab you will see other devices selected than you searched for. image

Expected Behavior

I would expect that only the devices I searched for should be edited.

Observed Behavior

All devices were selected.

GeertReijnders avatar Jun 26 '24 13:06 GeertReijnders

The bulk form target URL needs to be updated when the quicksearch value is updated, to ensure that ?q=foo is passed along as a query parameter to the bulk edit/delete view.

jeremystretch avatar Jun 26 '24 14:06 jeremystretch

Could you please assign it to me?

Julio-Oliveira-Encora avatar Jun 28 '24 17:06 Julio-Oliveira-Encora

Issue is in object_list.html the bulk-edit buttons are outside the table htmx so request.GET is the original page params and not from the htmx updates.

arthanson avatar Jul 10 '24 04:07 arthanson

Just ran into this. Nice find!

talbers-ocient avatar Aug 02 '24 20:08 talbers-ocient