From 0a574624e036dcca6c8bdeefca9cb4c4da64bb88 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 4 Aug 2014 17:59:56 +0200 Subject: SONAR-4627 Fix message to display --- .../src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/sonar-web') diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb index 3622e6a4955..6a08553dae1 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb @@ -111,7 +111,7 @@ class MetricsController < ApplicationController # If the key (name in db) is invalid, override error message to not display 'Key is invalid' but 'Name is invalid' if metric.errors[:name] metric.errors.clear - metric.errors.add_to_base('Name is invalid. Only alphabetic and space characters are allowed.') + metric.errors.add_to_base('Name is invalid. Only alphanumerical characters and space characters are allowed.') end @errors << metric.errors.full_messages.join("
\n") -- cgit v1.2.3