diff --git a/mifosng-provider/src/main/java/org/mifosplatform/commands/service/CommandWrapperBuilder.java b/mifosng-provider/src/main/java/org/mifosplatform/commands/service/CommandWrapperBuilder.java index 45f9d76dd..d68aea744 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/commands/service/CommandWrapperBuilder.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/commands/service/CommandWrapperBuilder.java @@ -316,6 +316,11 @@ public class CommandWrapperBuilder { this.datatableId = datatableId; this.actionName = "UPDATE"; this.entityName = datatable; + if (datatableId == null) { + this.href = "/datatables/" + datatable + "/" + apptableId; + } else { + this.href = "/datatables/" + datatable + "/" + apptableId + "/" + datatableId; + } return this; } @@ -324,6 +329,11 @@ public class CommandWrapperBuilder { this.datatableId = datatableId; this.actionName = "DELETE"; this.entityName = datatable; + if (datatableId == null) { + this.href = "/datatables/" + datatable + "/" + apptableId; + } else { + this.href = "/datatables/" + datatable + "/" + apptableId + "/" + datatableId; + } return this; }