From 4a10b4ece054c95deddb5d424a14bf3f225b1107 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 20 Dec 2018 15:49:35 -0500 Subject: [PATCH] Fixes #2704: Fix form select widget population on parent with null value --- CHANGELOG.md | 1 + netbox/project-static/js/forms.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24722f3260c..8700deb0a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ v2.5.2 (FUTURE) * [#2673](https://github.com/digitalocean/netbox/issues/2673) - Fix exception on LLDP neighbors view for device with a circuit connected * [#2691](https://github.com/digitalocean/netbox/issues/2691) - Cable trace should follow circuits * [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs +* [#2704](https://github.com/digitalocean/netbox/issues/2704) - Fix form select widget population on parent with null value * [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling * [#2712](https://github.com/digitalocean/netbox/issues/2712) - Preserve list filtering after editing objects in bulk diff --git a/netbox/project-static/js/forms.js b/netbox/project-static/js/forms.js index 89bc3aee147..fa23f1592f7 100644 --- a/netbox/project-static/js/forms.js +++ b/netbox/project-static/js/forms.js @@ -100,7 +100,7 @@ $(document).ready(function() { } else if (filter_field.val()) { rendered_url = rendered_url.replace(match[0], filter_field.val()); } else if (filter_field.attr('nullable') == 'true') { - rendered_url = rendered_url.replace(match[0], '0'); + rendered_url = rendered_url.replace(match[0], 'null'); } }