]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5774 WS /api/events does not work for views 4.5.1-RC1
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 24 Oct 2014 13:34:33 +0000 (15:34 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 24 Oct 2014 13:34:33 +0000 (15:34 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/events_controller.rb

index 451276bd41b4cc44873a2684bc433007fa984bf5..bb6189a6fad2dbd2c8e7277734ce4edccc44b99f 100644 (file)
@@ -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])