Unable to remove columns in object overview #4811

Closed
opened 2025-12-29 19:20:52 +01:00 by adam · 3 comments
Owner

Originally created by @rodvand on GitHub (Apr 22, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.1

Python version

3.7

Steps to Reproduce

Use Google Chrome or Microsoft Edge as your web browser.

  1. Go to Virtualization -> Virtual Machines
  2. Press Configure
  3. Remove the column "Name"
  4. Save

Expected Behavior

The column name to disappear from the overview.

Observed Behavior

The table looks the same.

If I first add some columns (that works) and then try removing a column it resets the whole table.

Originally created by @rodvand on GitHub (Apr 22, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.1 ### Python version 3.7 ### Steps to Reproduce Use Google Chrome or Microsoft Edge as your web browser. 1. Go to Virtualization -> Virtual Machines 2. Press Configure 3. Remove the column "Name" 4. Save ### Expected Behavior The column name to disappear from the overview. ### Observed Behavior The table looks the same. If I first add some columns (that works) and then try removing a column it resets the whole table.
adam added the type: bugstatus: accepted labels 2025-12-29 19:20:52 +01:00
adam closed this issue 2025-12-29 19:20:52 +01:00
Author
Owner

@rodvand commented on GitHub (Apr 22, 2021):

I see this has already been reported in https://github.com/netbox-community/netbox/issues/6202.

@rodvand commented on GitHub (Apr 22, 2021): I see this has already been reported in https://github.com/netbox-community/netbox/issues/6202.
Author
Owner

@rodvand commented on GitHub (Apr 22, 2021):

From my own investigation (I'm a javascript noob, so bear with me):
If I set the breakpoint in Chrome at 648b9dd7d8/netbox/project-static/js/tableconfig.js (L48) and look at the variables when I try removing a field, the variable data looks like this:
Screen Shot 2021-04-22 at 21 03 35

If I do the same exercise when adding a field the variable data looks like this:
Screen Shot 2021-04-22 at 21 05 06

@rodvand commented on GitHub (Apr 22, 2021): From my own investigation (I'm a javascript noob, so bear with me): If I set the breakpoint in Chrome at https://github.com/netbox-community/netbox/blob/648b9dd7d81b773258907e16a4d88e13ab3054c4/netbox/project-static/js/tableconfig.js#L48 and look at the variables when I try removing a field, the variable data looks like this: <img width="258" alt="Screen Shot 2021-04-22 at 21 03 35" src="https://user-images.githubusercontent.com/56864/115771484-46a83d80-a3ae-11eb-82a4-70bf4f09656f.png"> If I do the same exercise when adding a field the variable data looks like this: <img width="275" alt="Screen Shot 2021-04-22 at 21 05 06" src="https://user-images.githubusercontent.com/56864/115771589-6fc8ce00-a3ae-11eb-8083-d1b16b5b29b5.png">
Author
Owner

@jeremystretch commented on GitHub (Apr 23, 2021):

Looks like Chrome et al need to use prop() rather than attr() when marking an <option> selected.

@jeremystretch commented on GitHub (Apr 23, 2021): Looks like Chrome et al need to use `prop()` rather than `attr()` when marking an `<option>` selected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4811