diff options
author | Struan Donald <struan@exo.org.uk> | 2017-09-08 17:20:54 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-09-13 09:50:02 +0100 |
commit | e2225f14211e061330223b9f752b7924610bc0f9 (patch) | |
tree | e910fcdc7a2ed17da435afa50d36627c5328a9b1 /templates | |
parent | d9c0917b84d501e6cfca7e0113470997b6ff2f35 (diff) |
select default response priority in inspect panel
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_inspect.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html index 59806dc66..a275555f1 100644 --- a/templates/web/base/report/_inspect.html +++ b/templates/web/base/report/_inspect.html @@ -122,9 +122,9 @@ <p> <label for="problem_priority">[% loc('Priority') %]</label> <select name="priority" id="problem_priority" class="form-control"> - <option value="" [% 'selected' UNLESS problem.response_priority_id %]>-</option> + <option value="" [% 'selected' UNLESS problem.response_priority_id OR has_default_priority %]>-</option> [% FOREACH priority IN problem.response_priorities %] - <option value="[% priority.id %]" [% 'selected' IF problem.response_priority_id == priority.id %] [% 'disabled' IF priority.deleted %]>[% priority.name | html %]</option> + <option value="[% priority.id %]" [% 'selected' IF ( problem.response_priority_id == priority.id ) OR priority.is_default %][% 'disabled' IF priority.deleted %]>[% priority.name | html %]</option> [% END %] </select> </p> |