Merge pull request #219 from houdiniproject/remove_campaign_creator_from_donor_email
Fix for campaign creator email being sent to donor
This commit is contained in:
commit
54d30694f9
2 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
<% if donation.campaign && donation.campaign.published %>
|
||||
<tr>
|
||||
<td><strong><%= t('donation.campaign') %></strong></td>
|
||||
<td><a href='<%= nonprofit_campaign_url(donation.nonprofit, donation.campaign) %>'><%= donation.campaign.name %></a><small>(Campaign Id: <%= donation.campaign.id%>, Creator: <a href="mailto:<%= donation.campaign.profile.user.email %>"><%= donation.campaign.profile.user.email %></a>)</small></td>
|
||||
<td><a href='<%= nonprofit_campaign_url(donation.nonprofit, donation.campaign) %>'><%= donation.campaign.name %></a><small>(Campaign Id: <%= donation.campaign.id%><% if @show_campaign_creator %>, Creator: <a href="mailto:<%= donation.campaign.profile.user.email %>"><%= donation.campaign.profile.user.email %></a><% end %>)</small></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<%= render 'components/email/supporter_table', supporter: @donation.supporter %>
|
||||
<br>
|
||||
|
||||
<% @show_campaign_creator = true%>
|
||||
<%= render 'donation_mailer/donation_payment_table', donation: @donation, charge: @charge %>
|
||||
|
||||
<% if @donation.recurring_donation %>
|
||||
|
|
Loading…
Reference in a new issue