Skip to content

Commit

Permalink
Merge pull request #5402 from DFE-Digital/CPDLP-3899
Browse files Browse the repository at this point in the history
[CPDLP-3899] Ensure Void/Show declarations are scoped to ECF declarations
  • Loading branch information
leandroalemao authored Jan 7, 2025
2 parents 7d28ade + 397e2b2 commit 772305f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def participant_declaration_query_scope
end

def participant_declaration_for_lead_provider
@participant_declaration_for_lead_provider ||= ParticipantDeclaration.for_lead_provider(cpd_lead_provider).find(params[:id])
@participant_declaration_for_lead_provider ||= ParticipantDeclaration::ECF.for_lead_provider(cpd_lead_provider).find(params[:id])
end

def permitted_params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def participant_declaration_from_query
end

def participant_declaration_for_lead_provider
@participant_declaration_for_lead_provider ||= ParticipantDeclaration.for_lead_provider(cpd_lead_provider).find(params[:id])
@participant_declaration_for_lead_provider ||= ParticipantDeclaration::ECF.for_lead_provider(cpd_lead_provider).find(params[:id])
end

def serializer_class
Expand Down

0 comments on commit 772305f

Please sign in to comment.