Skip to content

Commit 34bfeeb

Browse files
authored
Fix accepted by name (DefectDojo#6867)
* Update view_risk_acceptance.html Remove get_full_name from accepted_by as it's free text not a user * Update view_eng.html Remove get_full_name from accepted_by as it's free text not a user
1 parent f501bae commit 34bfeeb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dojo/templates/dojo/view_eng.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ <h4> Risk Acceptance
414414
</ul>
415415
</td>
416416
<td><a href="{% url 'view_risk_acceptance' eng.id risk_acceptance.id %}">{{ risk_acceptance.created|date }}</a></td>
417-
<td>{{ risk_acceptance.accepted_by.get_full_name }}</td>
417+
<td>{{ risk_acceptance.accepted_by }}</td>
418418
<td><a href="{% url 'view_risk_acceptance' eng.id risk_acceptance.id %}">{{ risk_acceptance.name }}</a></td>
419419
<td>
420420
{{ risk_acceptance.get_decision_display|default_if_none:"" }}
@@ -1084,4 +1084,4 @@ <h4><span class="fa fa-key" aria-hidden="true"></span>
10841084
{% include 'dojo/snippets/risk_acceptance_actions_snippet_js.html' %}
10851085

10861086
</script>
1087-
{% endblock %}
1087+
{% endblock %}

dojo/templates/dojo/view_risk_acceptance.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h3 class="pull-left">
9393
</tr>
9494
<tr>
9595
<td>{{ risk_acceptance.created|date }}</td>
96-
<td>{{ risk_acceptance.accepted_by.get_full_name }}</td>
96+
<td>{{ risk_acceptance.accepted_by }}</td>
9797
<td>{{ risk_acceptance.name }}</td>
9898
<td>{{ risk_acceptance.get_decision_display|default_if_none:"" }}</td>
9999
<!-- <td>{{ risk_acceptance.decision_details|default_if_none:""| truncatechars_html:100 }}</td> -->
@@ -376,4 +376,4 @@ <h3>Notes</h3>
376376
<script type="text/javascript">
377377
{% include 'dojo/snippets/risk_acceptance_actions_snippet_js.html' %}
378378
</script>
379-
{% endblock %}
379+
{% endblock %}

0 commit comments

Comments
 (0)