Skip to content

Commit 804625b

Browse files
authored
Merge pull request #145 from ANemcov/patch-1
Update mail_handler_patch.rb
2 parents d6e6c48 + e69249a commit 804625b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mail_handler_patch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def dispatch_to_default_with_helpdesk
3030
sender_email = @email.from.first
3131

3232
# any cc handling needed?
33-
custom_value = custom_field_value(issue,'cc-handling')
33+
custom_value = custom_field_value(issue.project,'cc-handling')
3434
if (!@email.cc.nil?) && (custom_value.value == '1')
3535
carbon_copy = @email[:cc].formatted.join(', ')
3636
custom_value = custom_field_value(issue,'copy-to')
@@ -115,7 +115,7 @@ def receive_issue_reply_with_helpdesk(issue_id, from_journal=nil)
115115
def custom_field_value(issue,name)
116116
custom_field = CustomField.find_by_name(name)
117117
CustomValue.where(
118-
"customized_id = ? AND custom_field_id = ?", issue.project.id, custom_field.id
118+
"customized_id = ? AND custom_field_id = ?", issue.id, custom_field.id
119119
).first
120120
end
121121

0 commit comments

Comments
 (0)