aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-24 15:34:33 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-24 15:34:33 +0200
commit33d7a6c21e6968cb73155a5e52593f3cde3c8bcc (patch)
treedb8e7f759acb83ab037a0d7a50c8d890da4a4c65
parent5525215fe2b82ff5421f6243e8984154e6f320df (diff)
downloadsonarqube-33d7a6c21e6968cb73155a5e52593f3cde3c8bcc.tar.gz
sonarqube-33d7a6c21e6968cb73155a5e52593f3cde3c8bcc.zip
SONAR-5774 WS /api/events does not work for views4.5.1-RC1
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb
index 451276bd41b..bb6189a6fad 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb
@@ -124,7 +124,7 @@ class Api::EventsController < Api::ApiController
def create
begin
load_resource(:admin, params[:resource])
- raise "Resource must be a root project" unless @resource.scope=='PRJK'
+ raise "Resource must be a root project" unless @resource.scope=='PRJ'
root_snapshot=nil
if (params[:dateTime])