From 3c9cb4e3b6ea12920da0e1caca307c8ac1e43806 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Tue, 7 May 2024 12:08:25 -0500 Subject: [PATCH] Ensure item is also embedded in submission form (cherry picked from commit bf4d04c90929a702f9e57a65012aa91f161d55c5) --- src/app/core/submission/submission-rest.service.spec.ts | 2 +- src/app/core/submission/submission-rest.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/core/submission/submission-rest.service.spec.ts b/src/app/core/submission/submission-rest.service.spec.ts index ec6fe10ec17..49715c6a1e8 100644 --- a/src/app/core/submission/submission-rest.service.spec.ts +++ b/src/app/core/submission/submission-rest.service.spec.ts @@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => { const resourceEndpoint = 'workspaceitems'; const resourceScope = '260'; const body = { test: new FormFieldMetadataValueObject('test') }; - const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=sections,collection'; + const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=item,sections,collection'; const timestampResponse = 1545994811992; function initTestService() { diff --git a/src/app/core/submission/submission-rest.service.ts b/src/app/core/submission/submission-rest.service.ts index 3dc885ea036..a08d25a3ddd 100644 --- a/src/app/core/submission/submission-rest.service.ts +++ b/src/app/core/submission/submission-rest.service.ts @@ -70,7 +70,7 @@ export class SubmissionRestService { */ protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string { let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`; - url = new URLCombiner(url, '?embed=sections,collection').toString(); + url = new URLCombiner(url, '?embed=item,sections,collection').toString(); if (collectionId) { url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString(); }