Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSpace 7: type bind controlled fields are not cleaned once hidden #4014

Open
steph-ieffam opened this issue Feb 19, 2025 · 0 comments
Open
Assignees
Labels
affects: 7.x Issue impacts 7.x releases bug claimed: 4Science 4Science team is working on this issue & will contribute back component: submission

Comments

@steph-ieffam
Copy link
Contributor

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:

  1. configure type bind on dc.relation.journal for the value dc.type = article
  2. start the submission and set dc.type = article
  3. at this point dc.relation.journal is displayed
  4. fill dc.relation.journal with any value
  5. Save the submission
  6. edit dc.type and set a different value
  7. Save the submission
  8. edit dc.type and select article once again
  9. field dc.relation.journal is displayed
  10. edit dc.relation.journal with a new value
  11. Save the submission
  12. An error occurs due to inconsistency in data between REST and Angular applications

Expected behavior

The submission fields should be cleared once hidden so that the same "cleanup" behavior implemented on the REST application is kept

@steph-ieffam steph-ieffam added affects: 7.x Issue impacts 7.x releases bug claimed: 4Science 4Science team is working on this issue & will contribute back component: submission needs triage New issue needs triage and/or scheduling labels Feb 19, 2025
@steph-ieffam steph-ieffam self-assigned this Feb 19, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Triage in DSpace Backlog Feb 19, 2025
@tdonohue tdonohue removed the needs triage New issue needs triage and/or scheduling label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: 7.x Issue impacts 7.x releases bug claimed: 4Science 4Science team is working on this issue & will contribute back component: submission
Projects
Development

No branches or pull requests

2 participants