]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5522 Fail to add or remove users from groups that do not have description ...
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 7 Aug 2014 10:50:07 +0000 (12:50 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 7 Aug 2014 10:50:07 +0000 (12:50 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/models/group.rb

index 47a189ba287dbd981586d8be82d81961a38515cf..e8da706e7612f72b6f95153d6f561b7d9e2c2d19 100644 (file)
@@ -26,7 +26,7 @@ class Group < ActiveRecord::Base
   
   validates_presence_of     :name
   validates_length_of       :name,    :within => 1..255
-  validates_length_of       :description,    :within => 0..200
+  validates_length_of       :description,    :maximum => 200, :allow_blank => true
   validates_uniqueness_of   :name
   validate       :name_cant_be_anyone