]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-812 replace language by languages
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 6 Dec 2012 15:14:52 +0000 (16:14 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 6 Dec 2012 15:14:52 +0000 (16:14 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/resources_controller.rb

index b633a2e684b75fee8d942c089443c508080b319f..144c9ea2fdbbca237c8dc08f3198bf80b3d6403f 100644 (file)
@@ -222,9 +222,9 @@ class Api::ResourcesController < Api::ApiController
       end
 
       # since version 3.4
-      if params['language']
-        snapshots_conditions << 'projects.language in (:language)'
-        snapshots_values[:language]=params['language'].split(',')
+      if params['languages']
+        snapshots_conditions << 'projects.language in (:languages)'
+        snapshots_values[:languages]=params['languages'].split(',')
       end
 
       snapshots_including_resource=Snapshot.find(:all, :conditions => [snapshots_conditions.join(' AND '), snapshots_values], :include => 'project')