diff --git a/src/main/java/info/bukova/isspst/ui/ListViewModel.java b/src/main/java/info/bukova/isspst/ui/ListViewModel.java index 6884df8c..008789cc 100644 --- a/src/main/java/info/bukova/isspst/ui/ListViewModel.java +++ b/src/main/java/info/bukova/isspst/ui/ListViewModel.java @@ -191,6 +191,7 @@ public class ListViewModel { ListViewModel.this, "dataList"); BindUtils.postNotifyChange(null, null, ListViewModel.this, "dataBean"); + BindUtils.postGlobalCommand(null, null, "reloadRelated", null); } catch (DataIntegrityViolationException e) { Messagebox.show(StringUtils.localize("DbCannotDelete"), StringUtils.localize("Error"), Messagebox.OK, Messagebox.ERROR); } catch (AccessDeniedException e) { @@ -237,9 +238,8 @@ public class ListViewModel { dataList.set(selIndex, editBean); } - if (newRec) { - BindUtils.postGlobalCommand(null, null, "reloadRelated", null); - } + BindUtils.postGlobalCommand(null, null, "reloadRelated", null); + } @GlobalCommand