Skip to content
Permalink
Browse files Browse the repository at this point in the history
XWIKI-19856: Bad execution setup on the context macro
  • Loading branch information
tmortagne committed Sep 9, 2022
1 parent bd34ad6 commit dd3f473
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -170,14 +170,14 @@ public List<Block> execute(ContextMacroParameters parameters, String content, Ma
// care of many other things
BlockAsyncRendererConfiguration configuration = createBlockAsyncRendererConfiguration(null, xdom, context);

// Configure the Transformation Context XDOM depending on the mode asked.
configuration.setXDOM(getXDOM(referencedDocReference, parameters));

Map<String, Object> backupObjects = new HashMap<>();
try {
// Switch the context document
this.documentAccessBridge.pushDocumentInContext(backupObjects, referencedDocReference);

// Configure the Transformation Context XDOM depending on the mode asked.
configuration.setXDOM(getXDOM(referencedDocReference, parameters));

// Execute the content
Block result = this.executor.execute(configuration);

Expand Down

0 comments on commit dd3f473

Please sign in to comment.