]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3529 Fixe edition of license settings
authorDavid Gageot <david@gageot.net>
Mon, 1 Oct 2012 07:57:29 +0000 (09:57 +0200)
committerDavid Gageot <david@gageot.net>
Mon, 1 Oct 2012 07:57:29 +0000 (09:57 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb

index f03ef2d40cb2638f15316da6a7795201932d2da0..0db50cd74b9133570fc28256f3666d16b89bedf6 100644 (file)
@@ -66,12 +66,7 @@ class SettingsController < ApplicationController
   def save_properties(resource_id)
     @updated_properties = {}
 
-    puts params[:settings]
-    puts params[:settings].keys
-
-
     (params[:settings] || []).each do |key, value|
-      puts value
       if value.kind_of? Array
         value = drop_trailing_blank_values(value)
       end
index 566f2c37959dc0d1fce5311b36b9659cd9af4c79..5080da013d1d263b6e3d73ddf80d4d28f4c51a11 100644 (file)
@@ -1,5 +1,5 @@
 <% if !value || value.blank? %>
-  <textarea rows="5" cols="80" class="width100" name="<%= h property.getKey() -%>" id="input_<%= h property.getKey() -%>"></textarea>
+  <textarea rows="5" cols="80" class="width100" name="<%= input_name(property) -%>" id="input_<%= h property.getKey() -%>"></textarea>
 <%
    else
      license = controller.java_facade.parseLicense(value)