]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-1492 Update html to ease IT writing
authorFabrice Bellingard <bellingard@gmail.com>
Fri, 17 Feb 2012 09:40:19 +0000 (10:40 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Fri, 17 Feb 2012 09:40:19 +0000 (10:40 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb

index c1c298abc1f7aa14252ff0d58403abfddd19ba53..160e31a981ce5acd72a8e34f87b05ca2c68bb78c 100644 (file)
@@ -339,7 +339,7 @@ class RulesConfigurationController < ApplicationController
       # set the note on the rule to avoid reloading the rule
       active_rule.note = note
     end
-    note.text = params[:text]
+    note.text = params[:note]
     note.user_login = current_user.login
     note.save!
     render :partial => 'active_rule_note', :locals => {:active_rule => active_rule, :is_admin => true } 
index f860b0fad7892fc0eebe9479f92bc32c07f21309..79370fd0b1051450a31619eb5ebd36ca6141004e 100644 (file)
@@ -42,7 +42,7 @@
     <tbody>
       <tr>
         <td class="width100">
-          <textarea name="text" id="<%= active_note_textarea_id -%>" rows="10" style="width:100%"
+          <textarea name="note" id="<%= active_note_textarea_id -%>" rows="10" style="width:100%"
                     onkeyup="if (this.value=='') $('<%= submit_active_note_update_button_id -%>').disabled=true; else $('<%= submit_active_note_update_button_id -%>').disabled=false;"><%= h(note.plain_text) if note -%></textarea>
         </td>
         <td class="markdown-help">