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
|
||||
@profile = current_user.profile
|
||||
@child_campaign = Campaign.where(
|
||||
profile_id: @profile.id,
|
||||
parent_campaign_id: @parent_campaign.id
|
||||
).first
|
||||
if (@parent_campaign)
|
||||
@child_campaign = Campaign.where(
|
||||
profile_id: @profile.id,
|
||||
parent_campaign_id: @parent_campaign.id
|
||||
).first
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue