-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Labels
affects: 9.xIssue impacts 9.x releasesIssue impacts 9.x releasesaffects: mainIssue impacts "main" (latest release).Issue impacts "main" (latest release).bugcomponent: submissionhelp wantedNeeds a volunteer to claim to move forwardNeeds a volunteer to claim to move forward
Description
Describe the bug
When deleting identifier input fields in the submission form, a TypeError is thrown. This issue can be reproduced both in DS9 (DSpace Demo) and in the DSpace Sandbox instance.
Steps to Reproduce:
- Start a new item submission.
- Select a collection, e.g. “1-step Workflow collection”.
- Enter a new ISSN.
- Click “Add more” under Identifiers.
- Click the trash can button to delete the first identifier form input field.
Error message:
TypeError: Cannot read properties of null (reading 'get')
Additional Information:
- Even with more than two identifier input fields, the error can be observed when removing any field (except the last one).
- I was able to reproduce the problem in my local instance. The following line of code appears to be responsible for the error (
this.group.get):
Line 306 in dba2d7a
| if (changes && !this.isRelationship && hasValue(this.group.get(this.model.id))) { |
Metadata
Metadata
Assignees
Labels
affects: 9.xIssue impacts 9.x releasesIssue impacts 9.x releasesaffects: mainIssue impacts "main" (latest release).Issue impacts "main" (latest release).bugcomponent: submissionhelp wantedNeeds a volunteer to claim to move forwardNeeds a volunteer to claim to move forward
Type
Projects
Status
📋 To Do