embed the item to submission patch request to fix issue where the submission form would revert to the previous data on save

This commit is contained in:
Art Lowel
2024-02-06 16:53:30 +01:00
parent 404ccd9b0e
commit 06025e42e0
2 changed files with 4 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ describe('JsonPatchOperationsService test suite', () => {
});
it('should send a new SubmissionPatchRequest', () => {
const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref, patchOpBody);
const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref + '?embed=item', patchOpBody);
scheduler.schedule(() => service.jsonPatchByResourceType(resourceEndpoint, resourceScope, testJsonPatchResourceType).subscribe());
scheduler.flush();
@@ -237,7 +237,7 @@ describe('JsonPatchOperationsService test suite', () => {
});
it('should send a new SubmissionPatchRequest', () => {
const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref, patchOpBody);
const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref + '?embed=item', patchOpBody);
scheduler.schedule(() => service.jsonPatchByResourceID(resourceEndpoint, resourceScope, testJsonPatchResourceType, testJsonPatchResourceId).subscribe());
scheduler.flush();