Remove the limitation on characters that can be used in custom_field, issue_status, role, tracker, user names (#5152).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4599 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -88,13 +88,11 @@ task :migrate_from_mantis => :environment do
|
||||
|
||||
def firstname
|
||||
@firstname = realname.blank? ? username : realname.split.first[0..29]
|
||||
@firstname.gsub!(/[^\w\s\'\-]/i, '')
|
||||
@firstname
|
||||
end
|
||||
|
||||
def lastname
|
||||
@lastname = realname.blank? ? '-' : realname.split[1..-1].join(' ')[0..29]
|
||||
@lastname.gsub!(/[^\w\s\'\-]/i, '')
|
||||
@lastname = '-' if @lastname.blank?
|
||||
@lastname
|
||||
end
|
||||
@@ -224,7 +222,7 @@ task :migrate_from_mantis => :environment do
|
||||
end
|
||||
|
||||
def name
|
||||
read_attribute(:name)[0..29].gsub(/[^\w\s\'\-]/, '-')
|
||||
read_attribute(:name)[0..29]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user