Merged in [11666] from housley@vigilsec.com:

Do not show updates related to a removed IPR disclosure.  Fixes #1983.
 - Legacy-Id: 11688
Note: SVN reference [11666] has been migrated to Git commit 40cef39cae
This commit is contained in:
Henrik Levkowetz 2016-07-16 17:12:49 +00:00
commit 008f0d4e40

View file

@ -21,22 +21,23 @@
<td>
{% if ipr.state_id == 'posted' or administrative_list %}
<div><a href="{% url "ietf.ipr.views.show" ipr.id %}">{{ ipr.title }}</a></div>
{% for item in ipr.relatedipr_source_set.all %}
{% if item.target.state_id == 'posted' %}
<div>Updates ID <a href="{% url "ietf.ipr.views.show" item.target.id %}">#{{ item.target.id }}</a>.</div>
{% endif %}
{% endfor %}
{% for item in ipr.relatedipr_target_set.all %}
{% if item.source.state_id == "posted" %}
<div>Updated by ID <a href="{% url "ietf.ipr.views.show" item.source.id %}">#{{ item.source.id }}</a>.</div>
{% endif %}
{% endfor %}
{% else %}
<div>{{ ipr.title }}</div>
<div><i>This IPR disclosure was removed at the request of the submitter.</i></div>
{% endif %}
{% for item in ipr.relatedipr_source_set.all %}
{% if item.target.state_id == 'posted' %}
<div>Updates ID <a href="{% url "ietf.ipr.views.show" item.target.id %}">#{{ item.target.id }}</a>.</div>
{% endif %}
{% endfor %}
{% for item in ipr.relatedipr_target_set.all %}
{% if item.source.state_id == "posted" %}
<div>Updated by ID <a href="{% url "ietf.ipr.views.show" item.source.id %}">#{{ item.source.id }}</a>.</div>
{% endif %}
{% endfor %}
</td>
{% if administrative_list == 'pending' %}