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

oneOf value is not selected when the model contains saved object #385

Closed
sebdeleze opened this issue Apr 23, 2021 · 1 comment
Closed

oneOf value is not selected when the model contains saved object #385

sebdeleze opened this issue Apr 23, 2021 · 1 comment
Labels
bug Something isn't working, but not critical f: editor Concerns editor based on JSON schema AND custom editor

Comments

@sebdeleze
Copy link

Describe the issue
When a record is saved with the second option of the oneOf select box, the editor does not select the value when editing the record.

To Reproduce

  1. Go to an editor containing a oneOf field.
  2. Save a record with the second option of the oneOf.
  3. Re-open the editor
  4. The second option is not selected.

Expected behavior
The second option should be selected and the right object displayed in the form.

Additional context
Error seen in document editor on SONAR. Tried to reproduce with the editor tester, but an initial value for the model cannot be set.

@sebdeleze sebdeleze added bug Something isn't working, but not critical f: editor Concerns editor based on JSON schema AND custom editor labels Apr 23, 2021
@sebdeleze
Copy link
Author

It was a misconfiguration in JSON schema, thanks to @jma!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, but not critical f: editor Concerns editor based on JSON schema AND custom editor
Projects
None yet
Development

No branches or pull requests

1 participant