]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2706 fix commands from review detail page
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 22 May 2012 22:27:31 +0000 (00:27 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 22 May 2012 22:27:31 +0000 (00:27 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/project_reviews_controller.rb

index 977fc9030a34d412862f617253ccd6156d197e3c..9d6a7f44b52cd0f0cb2ede4eddb45ee1ccfde297 100644 (file)
@@ -267,7 +267,7 @@ class ProjectReviewsController < ApplicationController
     access_denied unless has_rights_to_modify?(review.resource)
 
     bad_request('Missing command') if params[:command].blank?
-    RuleFailure.execute_command(params[:command], review.violation, current_user, params)
+    RuleFailure.execute_command(params[:command], review.violation, review.resource.project, current_user, params)
 
     review.reload
     render :partial => "project_reviews/review", :locals => {:review => review}