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

Exclude non-existing values when calculating a number of allowed selected options #1861

Closed
Bellfalasch opened this issue Mar 22, 2021 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@Bellfalasch
Copy link
Contributor

Content Studio 3.2.3

Using the following rules for an option-set, and removing an option that is selected stops the form for these options from being able to edit.

  • Create an option-set, call one of the options anything, like "option 2"
  • Use this config for the option-set:
<occurrences minimum="1" maximum="1"/>
<options minimum="0" maximum="1">
  • create a content using this - "option 2" (or a part for that matter)
  • update the xml and delete the option "option 2"
  • loading any part or content having that option stored in the content data layer will get evaluated as already selected and all options will be unselectable.

Possible workarounds: change options to maximum=2 or re-add any deleted options that are used/stored in data.

@alansemenov alansemenov changed the title Option-sets with maximum 1 that gets an option deleted in the form will not be able to change option for contents using the deleted option Exclude non-existing value when calculating a number of allowed selected options Mar 23, 2021
@alansemenov alansemenov changed the title Exclude non-existing value when calculating a number of allowed selected options Exclude non-existing values when calculating a number of allowed selected options Mar 23, 2021
@alansemenov alansemenov added the Bug Something isn't working label Mar 23, 2021
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

3 participants