ensure datatables update/delete has the url put into the audit table
This commit is contained in:
+10
@@ -316,6 +316,11 @@ public class CommandWrapperBuilder {
|
|||||||
this.datatableId = datatableId;
|
this.datatableId = datatableId;
|
||||||
this.actionName = "UPDATE";
|
this.actionName = "UPDATE";
|
||||||
this.entityName = datatable;
|
this.entityName = datatable;
|
||||||
|
if (datatableId == null) {
|
||||||
|
this.href = "/datatables/" + datatable + "/" + apptableId;
|
||||||
|
} else {
|
||||||
|
this.href = "/datatables/" + datatable + "/" + apptableId + "/" + datatableId;
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,6 +329,11 @@ public class CommandWrapperBuilder {
|
|||||||
this.datatableId = datatableId;
|
this.datatableId = datatableId;
|
||||||
this.actionName = "DELETE";
|
this.actionName = "DELETE";
|
||||||
this.entityName = datatable;
|
this.entityName = datatable;
|
||||||
|
if (datatableId == null) {
|
||||||
|
this.href = "/datatables/" + datatable + "/" + apptableId;
|
||||||
|
} else {
|
||||||
|
this.href = "/datatables/" + datatable + "/" + apptableId + "/" + datatableId;
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user