diff --git a/src/main/java/de/metas/ui/web/process/DocumentPreconditionsAsContext.java b/src/main/java/de/metas/ui/web/process/DocumentPreconditionsAsContext.java index cc960b33b..da41a18b6 100644 --- a/src/main/java/de/metas/ui/web/process/DocumentPreconditionsAsContext.java +++ b/src/main/java/de/metas/ui/web/process/DocumentPreconditionsAsContext.java @@ -83,6 +83,12 @@ public List getSelectedModels(final Class modelClass) return ImmutableList.of(model); } + @Override + public int getSingleSelectedRecordId() + { + return document.getDocumentIdAsInt(); + } + @Override public int getSelectionSize() { diff --git a/src/main/java/de/metas/ui/web/process/ViewAsPreconditionsContext.java b/src/main/java/de/metas/ui/web/process/ViewAsPreconditionsContext.java index 53ea1bb98..5ffa5378e 100644 --- a/src/main/java/de/metas/ui/web/process/ViewAsPreconditionsContext.java +++ b/src/main/java/de/metas/ui/web/process/ViewAsPreconditionsContext.java @@ -129,6 +129,12 @@ public DocumentId getSingleSelectedDocumentId() { return selectedDocumentIds.getSingleDocumentId(); } + + @Override + public int getSingleSelectedRecordId() + { + return getSingleSelectedDocumentId().toInt(); + } @Override public T getSelectedModel(final Class modelClass)