DSpace 7: type bind controlled fields are not cleaned once hidden #4014
Labels
affects: 7.x
Issue impacts 7.x releases
bug
claimed: 4Science
4Science team is working on this issue & will contribute back
component: submission
Describe the bug
When a submission form has a type bind controlled field there's an issue that occurs when the controlling field is switched to a different value and the restored to its previous value once again.
This behavior leads to a Patch request to be sent from the angular application towards the REST application.
The patch request fails due to an inconsistency in the data (the Angular application has not cleaned the data and considers the new data as a replacement for an old value but the REST application has cleared and removed all the non-allowed type bind field)
To Reproduce
Steps to reproduce the behavior:
dc.relation.journal
for the valuedc.type = article
dc.type = article
dc.relation.journal
is displayeddc.relation.journal
with any valuedc.type
and set a different valuedc.type
and selectarticle
once againdc.relation.journal
is displayeddc.relation.journal
with a new valueExpected behavior
The submission fields should be cleared once hidden so that the same "cleanup" behavior implemented on the REST application is kept
The text was updated successfully, but these errors were encountered: