From: Julien Lancelot Date: Fri, 24 Oct 2014 12:33:05 +0000 (+0200) Subject: SONAR-5774 WS /api/events does not work for views X-Git-Tag: 4.5.1-RC1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5525215fe2b82ff5421f6243e8984154e6f320df;p=sonarqube.git SONAR-5774 WS /api/events does not work for views --- 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 2fae5c1b769..451276bd41b 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.qualifier=='TRK' + raise "Resource must be a root project" unless @resource.scope=='PRJK' root_snapshot=nil if (params[:dateTime])