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

Concept list datatype with Required = True allows save with no value #10617

Open
bferguso opened this issue Feb 17, 2024 · 0 comments
Open

Concept list datatype with Required = True allows save with no value #10617

bferguso opened this issue Feb 17, 2024 · 0 comments
Labels

Comments

@bferguso
Copy link
Contributor

The concept-list datatype allows saving of a card with no value even if it is marked as Required. The datatype / widgets behave properly if no value is ever added to the list, however if a value is selected and then removed, the card can be saved.

Steps to Reproduce

  1. Navigate to an empty card that has a node of type concept-list that is marked as required.
  2. Press the card Save button. Note an error occurs stating the concept-list value is required. (Expected behaviour)
  3. Select any item in the list
  4. Remove all items from the list
  5. Press the card Save button

Expected outcome: Error stating a value in the concept-list is required
Actual outcome: The card saves without error.

The above behaviour is consistent regarless of whether the widget is a concept-multiselect-widget or concept-checkbox-widget.

No errors are present in the browser console.

Arches Version: 7.5.0
Browser: Firefox Developer Edition
OS: OSX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant