diff --git a/src/main/java/de/metas/ui/web/quickinput/QuickInput.java b/src/main/java/de/metas/ui/web/quickinput/QuickInput.java index 73d38c581..ed39c49d9 100644 --- a/src/main/java/de/metas/ui/web/quickinput/QuickInput.java +++ b/src/main/java/de/metas/ui/web/quickinput/QuickInput.java @@ -140,6 +140,11 @@ public String toString() .toString(); } + public DocumentPath getDocumentPath() + { + return quickInputDocument.getDocumentPath(); + } + public IAutoCloseable lockForReading() { final ReadLock readLock = readwriteLock.readLock(); diff --git a/src/main/java/de/metas/ui/web/quickinput/WindowQuickInputRestController.java b/src/main/java/de/metas/ui/web/quickinput/WindowQuickInputRestController.java index 35f1e6e42..45a43bf15 100644 --- a/src/main/java/de/metas/ui/web/quickinput/WindowQuickInputRestController.java +++ b/src/main/java/de/metas/ui/web/quickinput/WindowQuickInputRestController.java @@ -265,6 +265,8 @@ public List processChanges( return Execution.callInNewExecution("quickInput-writable-" + quickInputPath, () -> { forQuickInputWritable(quickInputPath, quickInput -> { quickInput.processValueChanges(events); + + Execution.getCurrentDocumentChangesCollector().setPrimaryChange(quickInput.getDocumentPath()); return null; // void }); return JSONDocument.ofEvents(Execution.getCurrentDocumentChangesCollector(), newJSONOptions());