-
Notifications
You must be signed in to change notification settings - Fork 433
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
Faulty submission form: arrange more than 3 lines #3217
Comments
I have been seeing this in 7.6 and 8.0 as well. I believe that after a reorder, the displayed text for the form oneboxes do not always match the underlying [Reorderable]MetadataValue that is used in patch add/update/delete operations.
Here are five author entries I made to demonstrate this on the DSpace Demo server - the 4th is a controlled value: Here is what is displayed after I reorder the 4th and 3rd values - they are switched but the label for the "Four Friends" entry has now been rendered as "Three". After clicking Save to perform the patch updates, and reloading the page, I can see that the reordering was successful, the displayed text in the form was just incorrect: I think the problem is in the
This subscription was added in August 2020 when submission and controlled vocab code was quite new, and if it still does something useful then we need to make sure that the subscriptions are build in a way that allow for the fact that groups.get(x) will change as x (the index of the groups array) changes, after reordering. I believe the behaviour reported in #2004 (unreliable save/delete) is related to the same issue - the saves and deletes are probably actually doing "the right thing" but do not match user expectations because the displayed text in the form components doesn't match the actual existing value to be saved/deleted. Note: I have not tested this extensively with "ExistingMetadataListValueComponent" which are actually relationship representations and are handled quite differently to form controls backed by saved metadata objects. |
I have mentioned my idea/solution in the other Github issue (#2004), please have a look if this could help here as well: |
Just to note my comment here, too, the fix mentioned in #2004 is good on its own merit (fixing bad equality checking) but only affects existing relationships being patched/saved from a submission, not onebox metadata values being re-ordered in an active submission. |
The rearrangement of more than 3 lines in the submission form is faulty. Rows disappear in the display (they are there again when saving) or are arranged differently than specified.
This has been tested with Chrome version 126.0.6478.183 (Offizieller Build) (64-Bit) on Dspace 8 demo version with the following item:
https://demo.dspace.org/workspaceitems/2168/view
Scenario:
--> Sometimes lines will disappear, sometimes arrange in a different order.
Expected behaviour:
Lines will always appear und in the chosen order.
The text was updated successfully, but these errors were encountered: