Fix bug where old p2p method of getting there by npo doesn't work
This commit is contained in:
parent
cc225ba6fd
commit
1c1e62d091
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue