From: Go MAEDA Date: Thu, 12 Oct 2023 22:42:55 +0000 (+0000) Subject: Cleanup debug code in app/models/mail_handler.rb (#39184). X-Git-Tag: 5.1.0~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb617673b3e072e9d64c198b45e8a020cc754c70;p=redmine.git Cleanup debug code in app/models/mail_handler.rb (#39184). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22339 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 67cb016d1..6d53530a8 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -615,7 +615,7 @@ class MailHandler < ActionMailer::Base 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