]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4570 Decreased to 2 the minimum number of characters to type to trigger a searc...
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 14 Aug 2013 09:12:07 +0000 (11:12 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 14 Aug 2013 09:12:07 +0000 (11:12 +0200)
sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb

index 2bea966249b68500a0cb722be25940bede5a158b..5b55876fb3f68e8193490709fda7259fa2dac959 100644 (file)
@@ -653,7 +653,7 @@ module ApplicationHelper
   #
   def resource_select_tag(name, options={})
     # see limitation in /api/resources/search
-    options[:min_length]=3
+    options[:min_length]=2
 
     ws_url="#{ApplicationController::root_context}/api/resources/search?f=s2&"
     if options[:qualifiers]
@@ -687,7 +687,7 @@ module ApplicationHelper
   #
   def component_select_tag(name, options={})
     # see limitation in /api/resources/search
-    options[:min_length]=3
+    options[:min_length]=2
 
     ws_url="#{ApplicationController::root_context}/api/resources/search?f=s2&"
     if options[:qualifiers]