This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new f4ca26e  wiki_username fix exception on issues with deleted assignee
f4ca26e is described below

commit f4ca26eae5149f0f034d02c29d5b324fb8cd46e8
Author: Dillon Walls <dillon.wa...@slashdotmedia.com>
AuthorDate: Fri May 22 22:22:39 2020 +0000

    wiki_username fix exception on issues with deleted assignee
---
 Allura/allura/lib/helpers.py                                            | 2 +-
 .../forgetracker/templates/tracker_widgets/ticket_search_results.html   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index e104353..4d91a0b 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -1294,4 +1294,4 @@ def user_project_url(username):
             self.username = username
 
     auth_provider = plugin.AuthenticationProvider.get(request)
-    return auth_provider.user_project_url(UserName(username))
\ No newline at end of file
+    return auth_provider.user_project_url(UserName(username))
diff --git 
a/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_search_results.html
 
b/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_search_results.html
index 6d5ff06..f621e9f 100644
--- 
a/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_search_results.html
+++ 
b/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_search_results.html
@@ -66,7 +66,7 @@
               {% elif col['name'] == 'status' %}
                 <td class="{{t.open_or_closed}}">{{t.status}}</td>
               {% elif col['name'] == 'assigned_to' %}
-                <td>{% if t.assigned_to_id %}
+                <td>{% if t.assigned_to %}
                       <a 
href="{{c.app.url}}search?q=assigned_to:%22{{h.urlquoteplus(t.assigned_to.username)}}%22"
 data-user-url="{{ h.user_project_url(t.assigned_to.username) }}" 
class="user-mention">{{t.assigned_to.display_name}}</a>
                     {% endif %}</td>
               {% elif col['name'] == 'reported_by' %}

Reply via email to