aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2010-09-06 18:35:19 -0400
committerChris Ball <cjb@laptop.org>2010-09-06 19:22:27 -0400
commit15b23a8c8c2c6e7ecd6f551b988f9494ad84072c (patch)
treeb358deba7a4147b902bd917da2ed91792bfcdc2a
parentddbca6dfa8df1db055cb7d7f28af8cf19e31f15b (diff)
downloadbugseverywhere-15b23a8c8c2c6e7ecd6f551b988f9494ad84072c.tar.gz
cfbe: Fix assigned-to-None search
-rw-r--r--interfaces/web/templates/base.html4
-rw-r--r--interfaces/web/web.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/interfaces/web/templates/base.html b/interfaces/web/templates/base.html
index 8f22d73..9666d3e 100644
--- a/interfaces/web/templates/base.html
+++ b/interfaces/web/templates/base.html
@@ -90,7 +90,9 @@
<ul class="filter-items">
<li><a href="/?assignee=None">Unassigned</a></li>
{% for assignee in assignees %}
- <li><a href="/?assignee={{ assignee|e }}">{{ assignee|e }}</a></li>
+ {% if assignee != "None" %}
+ <li><a href="/?assignee={{ assignee|e }}">{{ assignee|e }}</a></li>
+ {% endif %}
{% endfor %}
</ul>
</div>
diff --git a/interfaces/web/web.py b/interfaces/web/web.py
index 9284c29..b04c6e7 100644
--- a/interfaces/web/web.py
+++ b/interfaces/web/web.py
@@ -63,7 +63,7 @@ class WebInterface:
bugs = [bug for bug in self.bd if bug.status in status]
if assignee != '':
- assignee = EMPTY if assignee == 'None' else assignee
+ assignee = None if assignee == 'None' else assignee
bugs = [bug for bug in bugs if bug.assigned == assignee]
if target != '':