fix notify_team on wall
Created by: jojosch
see #2212 (closed)
if a comment on the wall was posted, inside notify_team the var noteable_type was empty, so the var notify_method was = note__email and no email was sent.
with this fix noteable_type will be "Wall" if note.noteable_type is empty or nil
Merge request reports
Activity
21 21 # Notifies the whole team except the author of note 22 22 def notify_team(note) 23 23 # Note: wall posts are not "attached" to anything, so fall back to "Wall" 24 noteable_type = note.noteable_type || "Wall" 24 noteable_type = note.noteable_type.presence || "Wall" 21 21 # Notifies the whole team except the author of note 22 22 def notify_team(note) 23 23 # Note: wall posts are not "attached" to anything, so fall back to "Wall" 24 noteable_type = note.noteable_type || "Wall" 24 noteable_type = note.noteable_type.presence || "Wall"
Please register or sign in to reply