Skip to content

Commit

Permalink
FORGE-2720: Fixed stale project when generating before setting it up
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Feb 3, 2017
1 parent 1865edb commit 3e7a6e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public Result execute(UIExecutionContext context) throws Exception
{
ScaffoldSetupContext setupContext = (ScaffoldSetupContext) attributeMap.get(ScaffoldSetupContext.class);
selectedProvider.setup(setupContext);
getProjectFactory().invalidateCaches();
}
ResourceCollection resourceCollection = (ResourceCollection) attributeMap.get(ResourceCollection.class);
// Ensure that the resource collection is instantiated. Prevents a null check in the scaffold provider.
Expand Down Expand Up @@ -101,6 +102,7 @@ private ScaffoldGenerationContext populateGenerationContext(UIContext context, C
ScaffoldGenerationContext generationContext = (ScaffoldGenerationContext) attributeMap
.get(ScaffoldGenerationContext.class);
generationContext.setResources(resources);
generationContext.setProject(getSelectedProject(context));
return generationContext;
}

Expand Down

0 comments on commit 3e7a6e1

Please sign in to comment.