changeset 5836951eec59 in bugs.tryton.org:default
details: https://hg.tryton.org/bugs.tryton.org?cmd=changeset&node=5836951eec59
description:
Do not select option for assignedto
diffstat:
html/issue.search.html | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 5ed7875db2d0 -r 5836951eec59 html/issue.search.html
--- a/html/issue.search.html Wed Jul 07 16:22:24 2021 +0200
+++ b/html/issue.search.html Tue Jul 20 11:12:12 2021 +0200
@@ -24,9 +24,9 @@
<input type="radio" name="@group"
value="{{ name }}" {% if name == group_on %}checked{% endif %}
/>
{%- endmacro %}
-{% macro option_value(option, id, name, default='') -%}
+{% macro option_value(option, id, name) -%}
<option value="{{ id }}"
- {% if id == request.form.getvalue(option, default)
%}selected{% endif %} >{{ name|u }}</option>
+ {% if id == request.form.getvalue(option, '') %}selected{%
endif %} >{{ name|u }}</option>
{%- endmacro %}
{% block head_title %}
@@ -185,10 +185,10 @@
<th>{% trans %}Assigned to:{% endtrans %}</th>
<td><select class="custom-select" name="assignedto" id="assignedto">
{{ option_value('assignedto', '', 'don\'t care') }}
- {{ option_value('assignedto', request.user.id, 'assigned to me', -1)
}}
- {{ option_value('assignedto', -1, 'unassigned', -1) }}
+ {{ option_value('assignedto', request.user.id, 'assigned to me') }}
+ {{ option_value('assignedto', -1, 'unassigned') }}
{% for user in db['user'].list() %}
- {{ option_value('creator', user.id, user.username, -1) }}
+ {{ option_value('creator', user.id, user.username) }}
{% endfor %}
</select></td>
<td class="text-center">{{ display_column('assignedto') }}</td>