Skip to content

Bulk editing inventory items fails because no device is selected by default #19464

Closed
@supertassu

Description

@supertassu

Deployment Type

Self-hosted

NetBox Version

v4.3.0

Python Version

3.12

Steps to Reproduce

  1. Create a new device
  2. Create a new inventory item (Add components -> Inventory items, add some name)
  3. On the device inventory item list, select the item you created and click "edit selected"
  4. Do any edit to the item data (for example, set the "description" field to "test")
  5. Click "Apply"

Expected Behavior

Edits are saved

Observed Behavior

An error pops up in the bottom right corner ("This field cannot be null.")

I believe this error happens because the "Device" field is for some reason not being populated on the bulk edit form by default. In addition to fixing the form to populate the field, it'd be nice if the error message would actually identify the field with the problem.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions