From: Julien Lancelot Date: Thu, 4 Jul 2013 13:22:21 +0000 (+0200) Subject: SONAR-4418 Fix issue when launching bulk change with a period selected and fix set... X-Git-Tag: 3.7~260 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bce1db9e70ecda6733d68be3db3957aa2d42a897;p=sonarqube.git SONAR-4418 Fix issue when launching bulk change with a period selected and fix set severity action --- diff --git a/sonar-server/src/main/java/org/sonar/server/issue/SetSeverityAction.java b/sonar-server/src/main/java/org/sonar/server/issue/SetSeverityAction.java index 363d963e576..b44fa04ffa5 100644 --- a/sonar-server/src/main/java/org/sonar/server/issue/SetSeverityAction.java +++ b/sonar-server/src/main/java/org/sonar/server/issue/SetSeverityAction.java @@ -50,7 +50,7 @@ public class SetSeverityAction extends Action implements ServerComponent { @Override public boolean execute(Map properties, Context context) { - return issueUpdater.setSeverity((DefaultIssue) context.issue(), severity(properties), context.issueChangeContext()); + return issueUpdater.setManualSeverity((DefaultIssue) context.issue(), severity(properties), context.issueChangeContext()); } private String severity(Map properties) { diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb index 1e0b00bfdcc..b645f80b042 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb @@ -323,7 +323,7 @@ class ResourceController < ApplicationController if @period && @period != 0 date = @snapshot.period_datetime(@period) if date - options['createdAfter'] = date + options['createdAfter'] = Api::Utils.format_datetime(date) end end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb index 5007355a5cc..a81e243c1bb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb @@ -21,18 +21,15 @@