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