[PR #4630] [CLOSED] fix get parameters lost on create and add another #12890

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4630
Author: @JulianJacobi
Created: 5/12/2020
Status: Closed

Base: developHead: fix/lost_interface_on_ip_addanother


📝 Commits (1)

  • 60f0e05 fix get parameters lost on create and add another

📊 Changes

2 files changed (+18 additions, -9 deletions)

View changed files

📝 netbox/utilities/utils.py (+13 -8)
📝 netbox/utilities/views.py (+5 -1)

📄 Description

Fixes: #4629

  • add get_clone_fields to get clone fields get parameters as QueryDict
  • change prepare_clone_fields to use get_clone_fields and build
    querystring with urlencode function instead of manual building.
  • add non clone_field GET-parameters to params QueryDict on
    ObjectEditView.post()

🔄 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/4630 **Author:** [@JulianJacobi](https://github.com/JulianJacobi) **Created:** 5/12/2020 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `fix/lost_interface_on_ip_addanother` --- ### 📝 Commits (1) - [`60f0e05`](https://github.com/netbox-community/netbox/commit/60f0e057d75b99d5bb55ae450ac8b145dc3536ad) fix get parameters lost on create and add another ### 📊 Changes **2 files changed** (+18 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/utils.py` (+13 -8) 📝 `netbox/utilities/views.py` (+5 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #4629 <!-- Please include a summary of the proposed changes below. --> - add get_clone_fields to get clone fields get parameters as QueryDict - change prepare_clone_fields to use get_clone_fields and build querystring with urlencode function instead of manual building. - add non clone_field GET-parameters to params QueryDict on ObjectEditView.post() --- <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-29 22:24:12 +01:00
adam closed this issue 2025-12-29 22:24:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12890