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:
Eric Schultz 2019-09-17 16:37:45 -05:00 committed by GitHub
commit 54d30694f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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 %>

View file

@ -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 %>