From: Jean-Philippe Lang Date: Sat, 19 Nov 2016 13:24:56 +0000 (+0000) Subject: Wrong validation introduced in r15989 (#24283). X-Git-Tag: 3.4.0~566 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42e65685521d32c5cef1a2de426efb87a8d9f672;p=redmine.git Wrong validation introduced in r15989 (#24283). git-svn-id: http://svn.redmine.org/redmine/trunk@15991 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/wiki.rb b/app/models/wiki.rb index e629baf9b..b4cf76595 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -25,7 +25,7 @@ class Wiki < ActiveRecord::Base validates_presence_of :start_page validates_format_of :start_page, :with => /\A[^,\.\/\?\;\|\:]*\z/ - validates_length_of :title, maximum: 255 + validates_length_of :start_page, maximum: 255 attr_protected :id before_destroy :delete_redirects