Skip to content

Commit

Permalink
Ensure item is also embedded in submission form
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed May 7, 2024
1 parent d1876a8 commit bf4d04c
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 @@ -78,7 +78,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 bf4d04c

Please sign in to comment.