Просмотр исходного кода

Fixes #8005: Fix contact email display

jeremystretch 4 лет назад
Родитель
Сommit
4d896573b1
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 1 1
      netbox/templates/tenancy/contact.html

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -7,6 +7,7 @@
 * [#7990](https://github.com/netbox-community/netbox/issues/7990) - Fix `title` display on contact detail view
 * [#7990](https://github.com/netbox-community/netbox/issues/7990) - Fix `title` display on contact detail view
 * [#7996](https://github.com/netbox-community/netbox/issues/7996) - Show WWN field in interface creation form
 * [#7996](https://github.com/netbox-community/netbox/issues/7996) - Show WWN field in interface creation form
 * [#8001](https://github.com/netbox-community/netbox/issues/8001) - Correct verbose name for wireless LAN group model
 * [#8001](https://github.com/netbox-community/netbox/issues/8001) - Correct verbose name for wireless LAN group model
+* [#8005](https://github.com/netbox-community/netbox/issues/8005) - Fix contact email display
 
 
 ---
 ---
 
 

+ 1 - 1
netbox/templates/tenancy/contact.html

@@ -48,7 +48,7 @@
             <tr>
             <tr>
               <td>Email</td>
               <td>Email</td>
               <td>
               <td>
-                {% if object.phone %}
+                {% if object.email %}
                   <a href="mailto:{{ object.email }}">{{ object.email }}</a>
                   <a href="mailto:{{ object.email }}">{{ object.email }}</a>
                 {% else %}
                 {% else %}
                   <span class="text-muted">None</span>
                   <span class="text-muted">None</span>