aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-02-17 10:40:19 +0100
committerFabrice Bellingard <bellingard@gmail.com>2012-02-17 10:40:19 +0100
commitaa342c58f14c8bc402f69143e9451aaad878e6c3 (patch)
treebd95d2d9f816f34c1e18e097f0e2f7d348200fa8 /sonar-server
parente5b7c5aadcf24efccf46a450f7eeb036b23458d7 (diff)
downloadsonarqube-aa342c58f14c8bc402f69143e9451aaad878e6c3.tar.gz
sonarqube-aa342c58f14c8bc402f69143e9451aaad878e6c3.zip
SONAR-1492 Update html to ease IT writing
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
index c1c298abc1f..160e31a981c 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
@@ -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 }
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb
index f860b0fad78..79370fd0b10 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_active_rule_note.html.erb
@@ -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">