Fix for campaign creator email being sent to donor

This commit is contained in:
Eric Schultz 2019-08-30 13:02:17 -05:00
parent c185f4cf73
commit fd966911c1
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 %>