Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22339
e93f8b46-1217-0410-a6f0-
8f06a7374b81
unless user.valid?
user.login = "user#{Redmine::Utils.random_hex(6)}" unless user.errors[:login].blank?
user.firstname = "-" unless user.errors[:firstname].blank?
- (puts user.errors[:lastname]; user.lastname = "-") unless user.errors[:lastname].blank?
+ user.lastname = "-" unless user.errors[:lastname].blank?
end
user
end