ensure datatables update/delete has the url put into the audit table

This commit is contained in:
John Woodlock
2013-01-09 18:15:06 +00:00
parent 029846bda2
commit 29af2d5999
@@ -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;
}