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

Additional Description field loses language selection #576

Open
zguillen opened this issue Sep 13, 2022 · 0 comments
Open

Additional Description field loses language selection #576

zguillen opened this issue Sep 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@zguillen
Copy link

Package version (if known): 0.19.15

Describe the bug

The additional description component loses what the user has selected for language when saving the draft.

Steps to Reproduce

  1. Go to https://inveniordm.web.cern.ch/uploads/new
  2. check metadata only record, No for DOI, pick any resource type and add testing for title, click save draft.
  3. enter 'test' for description, click add description button, enter 'test' for add'l description text, select abstract for type drop down, type in english for language and select Bahamas Creole English, click save draft button.
  4. The language drop down will revert back to 'select language'

Expected behavior

The language stays as the user selected

Screenshots (if applicable)

selection made for language:
image
after save draft button clicked, language selection is lost:
image

Additional context

It appears from the network tab that the language is sent and received in the json payloads of the PUT to /api/records endpoint but the UI is failing to re-render the selected language (so it is persisted to the db)

@zguillen zguillen added the bug Something isn't working label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant