diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-04-11 11:33:33 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-04-20 08:49:58 +0200 |
commit | 0a3daaaa0b4ee2209223656e63882770b69dfffd (patch) | |
tree | 03518d42b1faee034712b9d2ac4f09734cb398e0 /sonar-server/src | |
parent | be76b328e72c85a582fcb2e3112f0a9ae6f4d5ed (diff) | |
download | sonarqube-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.rb | 5 |
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 )
|