aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-04-11 11:33:33 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-04-20 08:49:58 +0200
commit0a3daaaa0b4ee2209223656e63882770b69dfffd (patch)
tree03518d42b1faee034712b9d2ac4f09734cb398e0 /sonar-server/src
parentbe76b328e72c85a582fcb2e3112f0a9ae6f4d5ed (diff)
downloadsonarqube-0a3daaaa0b4ee2209223656e63882770b69dfffd.tar.gz
sonarqube-0a3daaaa0b4ee2209223656e63882770b69dfffd.zip
[SONAR-2327] Add the commented_by param on the review search query
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb
index c266654003f..667861fc455 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb
@@ -127,9 +127,10 @@ class ReviewsController < ApplicationController
@need_or = false;
add_sql_query_param "status", @statuses
add_sql_query_param "severity", @severities
- add_sql_query_param "user_id", @review_authors
+ add_sql_query_param "reviews.user_id", @review_authors
+ add_sql_query_param "review_comments.user_id", @comment_authors
- @reviews = Review.find :all, :conditions => [@conditions] + @values
+ @reviews = Review.find( :all, :order => "created_at DESC", :joins => :review_comments, :conditions => [@conditions] + @values ).uniq
end
def add_sql_query_param ( field, search_params )