aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-03-28 10:40:33 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-03-28 10:40:33 +0200
commit7d68d5d2cbcb76fbdc94f5560017f3f1b56ebf07 (patch)
treec8689fa2682e8538d2e2ab40c2e0a7752a077cad /sonar-server
parent2985f763c8c4c62f418878a84820d3fd4006fc39 (diff)
downloadsonarqube-7d68d5d2cbcb76fbdc94f5560017f3f1b56ebf07.tar.gz
sonarqube-7d68d5d2cbcb76fbdc94f5560017f3f1b56ebf07.zip
SONAR-3359 Do nor create a rule without a description in the Web UI
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb
index c64a12f17bf..51d6df0a5fa 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb
@@ -21,7 +21,7 @@ class Rule < ActiveRecord::Base
MANUAL_REPOSITORY_KEY = 'manual'
- validates_presence_of :name, :plugin_name
+ validates_presence_of :name, :description, :plugin_name
validates_presence_of :plugin_rule_key, :if => 'name.present?'
has_many :rules_parameters