diff --git a/app/models/user.rb b/app/models/user.rb index 277218d8949..7ca456031a0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -633,7 +633,7 @@ class User < ActiveRecord::Base # possibility of the commit_email column not existing. def commit_email - return unless has_attribute?(:commit_email) + return self.email unless has_attribute?(:commit_email) # The commit email is the same as the primary email if undefined super.presence || self.email