mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
fix(java-spring): correct version author when changes exist. Fix Bug 73505
This commit is contained in:
@ -123,7 +123,10 @@ public class DefaultHistoryManager implements HistoryManager {
|
||||
History changes = objectMapper.readValue(changesSteam, History.class);
|
||||
|
||||
List<Object> historyChanges = changes.getChanges();
|
||||
Map<String, Object> historyChange = objectMapper.convertValue(historyChanges.get(0), Map.class);
|
||||
Map<String, Object> historyChange = objectMapper.convertValue(
|
||||
historyChanges.get(historyChanges.size() - 1),
|
||||
Map.class
|
||||
);
|
||||
|
||||
// write information about changes to the object
|
||||
version.setChanges(changes.getChanges());
|
||||
|
||||
Reference in New Issue
Block a user