[PR #19188] [CLOSED] Fixes: #17794 - Setup get_field_value to return multiple values when required #15565

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19188
Author: @DanSheps
Created: 4/15/2025
Status: Closed

Base: mainHead: fix-17794-get_field_value_return_list


📝 Commits (1)

  • 4628398 Update get_field_value to handle multiple incoming values

📊 Changes

2 files changed (+39 additions, -2 deletions)

View changed files

📝 netbox/utilities/forms/utils.py (+12 -2)
📝 netbox/utilities/tests/test_forms.py (+27 -0)

📄 Description

Fixes: #17794 - Setup get_field_value to return multiple values in the event of multi-values passed in a modelmultiplechoice or multiplechoice field.

  • Edit tests
  • Edit get_field_value to return multiple values in the event of a Multi-Value field being passed

🔄 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/19188 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 4/15/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-17794-get_field_value_return_list` --- ### 📝 Commits (1) - [`4628398`](https://github.com/netbox-community/netbox/commit/462839836c20ade7b92de33f9cccfafcddb1c260) Update `get_field_value` to handle multiple incoming values ### 📊 Changes **2 files changed** (+39 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms/utils.py` (+12 -2) 📝 `netbox/utilities/tests/test_forms.py` (+27 -0) </details> ### 📄 Description ### Fixes: #17794 - Setup get_field_value to return multiple values in the event of multi-values passed in a modelmultiplechoice or multiplechoice field. * Edit tests * Edit get_field_value to return multiple values in the event of a Multi-Value field being passed --- <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:22:45 +01:00
adam closed this issue 2025-12-30 00:22:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15565