diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ad9d44b..839116a31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ v2.5.7 (FUTURE) * [#2912](https://github.com/digitalocean/netbox/issues/2912) - Cable type in filter form should be blank by default * [#2913](https://github.com/digitalocean/netbox/issues/2913) - Fix assigned prefixes link on VRF view * [#2914](https://github.com/digitalocean/netbox/issues/2914) - Fix empty connected circuit link on device interfaces list +* [#2915](https://github.com/digitalocean/netbox/issues/2915) - Fix bulk editing of pass-through ports v2.5.6 (2019-02-13) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 455a36db0..44e61db2d 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -2362,7 +2362,7 @@ class FrontPortCreateForm(ComponentForm): class FrontPortBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm): pk = forms.ModelMultipleChoiceField( - queryset=Interface.objects.all(), + queryset=FrontPort.objects.all(), widget=forms.MultipleHiddenInput() ) type = forms.ChoiceField( @@ -2436,7 +2436,7 @@ class RearPortCreateForm(ComponentForm): class RearPortBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm): pk = forms.ModelMultipleChoiceField( - queryset=Interface.objects.all(), + queryset=RearPort.objects.all(), widget=forms.MultipleHiddenInput() ) type = forms.ChoiceField( diff --git a/netbox/templates/utilities/obj_bulk_edit.html b/netbox/templates/utilities/obj_bulk_edit.html index abdbec261..2b12f2a07 100644 --- a/netbox/templates/utilities/obj_bulk_edit.html +++ b/netbox/templates/utilities/obj_bulk_edit.html @@ -4,6 +4,14 @@ {% block content %}

{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}

+{% if form.errors %} +
+
Errors
+
+ {{ form.errors }} +
+
+{% endif %}
{% csrf_token %} {% if request.POST.return_url %}