]> source.dussan.org Git - redmine.git/commitdiff
Cleanup debug code in app/models/mail_handler.rb (#39184).
authorGo MAEDA <maeda@farend.jp>
Thu, 12 Oct 2023 22:42:55 +0000 (22:42 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 12 Oct 2023 22:42:55 +0000 (22:42 +0000)
Patch by Holger Just.

git-svn-id: https://svn.redmine.org/redmine/trunk@22339 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb

index 67cb016d13c021fdb57ac3a99dbb6d1e3696cd23..6d53530a8b921f0e2a51380cfb3695f6449674fb 100644 (file)
@@ -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