[PR #20099] [MERGED] Fixes: #20098 - Handle empty object_types field in Tag bulk import #15826

Closed
opened 2025-12-30 00:24:16 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20099
Author: @bctiemann
Created: 8/15/2025
Status: Merged
Merged: 8/15/2025
Merged by: @arthanson

Base: mainHead: 20098-fix-empty-object_types-in-tag-import


📝 Commits (2)

  • 8ad3eb1 Handle empty object_types field in Tag bulk import
  • 66e0405 Return early if value is empty

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 netbox/utilities/forms/fields/csv.py (+2 -0)

📄 Description

Fixes: #20098

Handles the case in CSVMultipleContentTypeField.prepare_value where value is null (which only occurs in Tag bulk import, where the object_types field is optional).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20099 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 8/15/2025 **Status:** ✅ Merged **Merged:** 8/15/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `20098-fix-empty-object_types-in-tag-import` --- ### 📝 Commits (2) - [`8ad3eb1`](https://github.com/netbox-community/netbox/commit/8ad3eb1ca2ae2afcdf258845250adeeb0aeb382d) Handle empty object_types field in Tag bulk import - [`66e0405`](https://github.com/netbox-community/netbox/commit/66e04059747662e714bf602fe29d32eae91320fb) Return early if value is empty ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms/fields/csv.py` (+2 -0) </details> ### 📄 Description ### Fixes: #20098 Handles the case in `CSVMultipleContentTypeField.prepare_value` where `value` is null (which only occurs in Tag bulk import, where the `object_types` field is optional). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:24:16 +01:00
adam closed this issue 2025-12-30 00:24:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15826