#2326 fix has_mail being set by wrong copy

This commit is contained in:
Toks
2014-12-12 23:59:26 -05:00
parent cee524ec48
commit 42ad3b8d3c

View File

@@ -201,7 +201,7 @@ class Dmail < ActiveRecord::Base
end
def update_recipient
unless is_deleted?
if owner_id != CurrentUser.user.id && !is_deleted?
to.update_attribute(:has_mail, true)
end
end