Skip to content

Commit

Permalink
fixed: bug with several macros previous same document
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrfedorov97 committed Oct 10, 2023
1 parent 5739020 commit c13a66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/onlyoffice/macro/OnlyOfficePreviewMacro.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public String execute(final Map<String, String> args, final String s, final Conv
}

final Map<String, Object> context = this.velocityHelperService.createDefaultVelocityContext();
context.put("id", documentManager.getKeyOfFile(attachment.getId(), true));
context.put("id", System.currentTimeMillis());
context.put("attachmentId", attachment.getId());
context.put("action", action);
context.put("docServiceApiUrl", urlManager.getDocServiceApiUrl());
Expand Down

0 comments on commit c13a66d

Please sign in to comment.