Skip to content

Commit

Permalink
[MNG-8360] Fix parent profiles not reported as activated (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet authored Oct 25, 2024
1 parent a443928 commit c0866ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1199,10 +1199,14 @@ private Model readEffectiveModel() throws ModelBuilderException {

// profile injection
List<Profile> activePomProfiles = getActiveProfiles(interpolatedProfiles, profileActivationContext);
result.setActivePomProfiles(activePomProfiles);
model = profileInjector.injectProfiles(model, activePomProfiles, request, this);
model = profileInjector.injectProfiles(model, activeExternalProfiles, request, this);

List<Profile> allProfiles = new ArrayList<>(parentActivePomProfiles.size() + activePomProfiles.size());
allProfiles.addAll(parentActivePomProfiles);
allProfiles.addAll(activePomProfiles);
result.setActivePomProfiles(allProfiles);

// model interpolation
Model resultModel = model;
resultModel = interpolateModel(resultModel, request, this);
Expand Down

0 comments on commit c0866ec

Please sign in to comment.