diff --git a/content/manual/source/features/entity_snapshots_view.java b/content/manual/source/features/entity_snapshots_view.java index 02e4bef5c..89d13154c 100644 --- a/content/manual/source/features/entity_snapshots_view.java +++ b/content/manual/source/features/entity_snapshots_view.java @@ -1,15 +1,16 @@ -public class CustomerEditor extends AbstractEditor { +public class OrderEdit extends StandardEditor { @Inject private EntityStates entityStates; @Inject protected EntityDiffViewer diffFrame; - + @Inject + InstanceContainer orderDc; ... - @Override - protected void postInit() { - if (!entityStates.isNew(getItem())) { - diffFrame.loadVersions(getItem()); + @Subscribe + public void onAfterShow(AfterShowEvent event) { + if (!entityStates.isNew(orderDc.getItem())) { + diffFrame.loadVersions(orderDc.getItem()); } } -} \ No newline at end of file +}