Scripts : null_option not working #5324

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

Originally created by @PieterL75 on GitHub (Sep 6, 2021).

Originally assigned to: @thatmattlove on GitHub.

NetBox version

v3.0.1

Python version

3.7

Steps to Reproduce

Create a script with an ObjectVar and the option 'null_option'
env_prefix = ObjectVar(
label = "Prefix",
model = Prefix,
null_option = 'All',
)

Expected Behavior

The dropdown should show all prefixes and the 'All' null option value

Observed Behavior

The null_option value is not shown.
This worked fine in 2.11, so I assume this is due to the new UI

Originally created by @PieterL75 on GitHub (Sep 6, 2021). Originally assigned to: @thatmattlove on GitHub. ### NetBox version v3.0.1 ### Python version 3.7 ### Steps to Reproduce Create a script with an ObjectVar and the option 'null_option' env_prefix = ObjectVar( label = "Prefix", model = Prefix, null_option = 'All', ) ### Expected Behavior The dropdown should show all prefixes and the 'All' null option value ### Observed Behavior The null_option value is not shown. This worked fine in 2.11, so I assume this is due to the new UI
adam added the type: bugstatus: accepted labels 2025-12-29 19:26:38 +01:00
adam closed this issue 2025-12-29 19:26:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5324