Skip to content

Commit

Permalink
Ensure item is also embedded in submission form
Browse files Browse the repository at this point in the history
(cherry picked from commit bf4d04c)
  • Loading branch information
tdonohue authored and github-actions[bot] committed May 7, 2024
1 parent 4bf8944 commit 3c9cb4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/core/submission/submission-rest.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/submission/submission-rest.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3c9cb4e

Please sign in to comment.