diff options
-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 )
|