Typo in REARPORT_BUTTONS template code #6694

Closed
opened 2025-12-29 19:44:04 +01:00 by adam · 2 comments
Owner

Originally created by @mzbroch on GitHub (Jul 20, 2022).

Originally assigned to: @mzbroch on GitHub.

NetBox version

v3.3-beta

Python version

3.8

Steps to Reproduce

  1. Analyse code in dcim/tables/template_code.py -> REARPORT_BUTTONS

Expected Behavior

b_termination_type points to circuits.circuittermination and not to circuits.circuitterminations (s)

Observed Behavior

Actual code:

                <li><a class="dropdown-item" href="{% url 'dcim:cable_add' %}?a_terminations_type=dcim.rearport&a_terminations={{ record.pk }}&b_terminations_type=circuits.circuitterminations&return_url={% url 'dcim:device_rearports' pk=object.pk %}">Circuit Termination</a></li>
Originally created by @mzbroch on GitHub (Jul 20, 2022). Originally assigned to: @mzbroch on GitHub. ### NetBox version v3.3-beta ### Python version 3.8 ### Steps to Reproduce 1. Analyse code in `dcim/tables/template_code.py` -> `REARPORT_BUTTONS` ### Expected Behavior b_termination_type points to `circuits.circuittermination` and not to `circuits.circuitterminations` (s) ### Observed Behavior Actual code: ``` <li><a class="dropdown-item" href="{% url 'dcim:cable_add' %}?a_terminations_type=dcim.rearport&a_terminations={{ record.pk }}&b_terminations_type=circuits.circuitterminations&return_url={% url 'dcim:device_rearports' pk=object.pk %}">Circuit Termination</a></li> ```
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:44:04 +01:00
adam closed this issue 2025-12-29 19:44:04 +01:00
Author
Owner

@mzbroch commented on GitHub (Jul 20, 2022):

Addressed in #9796

@mzbroch commented on GitHub (Jul 20, 2022): Addressed in #9796
Author
Owner

@ryanmerolle commented on GitHub (Jul 21, 2022):

Thanks @mzbroch for submitting the issue and a PR for this simple typo!

@ryanmerolle commented on GitHub (Jul 21, 2022): Thanks @mzbroch for submitting the issue and a PR for this simple typo!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6694