diff options
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/noteable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/noteable.rb b/app/models/concerns/noteable.rb index 0333cfc5f9e..65e7f734233 100644 --- a/app/models/concerns/noteable.rb +++ b/app/models/concerns/noteable.rb @@ -198,7 +198,7 @@ module Noteable def creatable_note_email_address(author) return unless supports_creating_notes_by_email? - project_email = project.new_issuable_address(author, self.class.name.underscore) + project_email = project&.new_issuable_address(author, base_class_name.underscore) return unless project_email project_email.sub('@', "-#{iid}@") |