aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-12-04 16:27:52 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-12-04 16:28:01 +0100
commit06704489f60313c031c1e139dd6801a3751a4462 (patch)
tree831e4d3eaa496aa67258d0dd14677cf9bd068de6
parent36b52b68b96aee20d0ca1978411b7e77093a292b (diff)
downloadsonarqube-06704489f60313c031c1e139dd6801a3751a4462.tar.gz
sonarqube-06704489f60313c031c1e139dd6801a3751a4462.zip
SONAR-4851 fix selection on "Unassigned" field
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/issues/search.html.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/search.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/search.html.erb
index 5e76ae28b09..90aacb226e9 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/search.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/search.html.erb
@@ -34,7 +34,12 @@
<%
component_labels = Project.by_keys(@issues_query.componentRoots).map{|c| c ? c.name : nil}
+ assignee_keys = @issues_query.assignees
assignee_labels = user_labels(@issues_query.assignees)
+ if @issues_query.assigned==false
+ assignee_keys = ['<unassigned>'] + assignee_keys
+ assignee_labels = [message('unassigned')] + assignee_labels
+ end
reporter_labels = user_labels(@issues_query.reporters)
%>
@@ -94,7 +99,7 @@
{ key: 'severities[]', value: <%= @issues_query.severities.to_json -%> },
{ key: 'statuses[]', value: <%= @issues_query.statuses.to_json -%> },
{ key: 'resolutions[]', value: <%= @issues_query.resolutions.to_json -%> },
- { key: 'assignees', value: <%= @issues_query.assignees.to_json -%>, text: <%= assignee_labels.to_json -%> },
+ { key: 'assignees', value: <%= assignee_keys.to_json -%>, text: <%= assignee_labels.to_json -%> },
{ key: 'reporters', value: <%= @issues_query.reporters.to_json -%>, text: <%= reporter_labels.to_json -%> },
{ key: 'createdAfter', value: '<%= Api::Utils.format_date(@issues_query.createdAfter) -%>' },
{ key: 'createdBefore', value: '<%= Api::Utils.format_date(@issues_query.createdBefore) -%>' }