1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #2998: Limit device query to non-racked devices if no rack selected when creating a cable

This commit is contained in:
Jeremy Stretch
2019-03-19 10:22:52 -04:00
parent 044f7395bb
commit f6345b9a5d
2 changed files with 4 additions and 0 deletions

View File

@ -155,10 +155,13 @@ $(document).ready(function() {
filter_for_elements.each(function(index, filter_for_element) {
var param_name = $(filter_for_element).attr(attr_name);
var is_nullable = $(filter_for_element).attr("nullable");
var value = $(filter_for_element).val();
if (param_name && value) {
parameters[param_name] = value;
} else if (param_name && is_nullable) {
parameters[param_name] = "null";
}
});