Fix bug where old p2p method of getting there by npo doesn't work

This commit is contained in:
Eric Schultz 2018-11-12 11:25:43 -06:00
parent cc225ba6fd
commit 1c1e62d091

View file

@ -117,10 +117,12 @@ class CampaignsController < ApplicationController
if current_user if current_user
@profile = current_user.profile @profile = current_user.profile
@child_campaign = Campaign.where( if (@parent_campaign)
profile_id: @profile.id, @child_campaign = Campaign.where(
parent_campaign_id: @parent_campaign.id profile_id: @profile.id,
).first parent_campaign_id: @parent_campaign.id
).first
end
end end
end end