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

Allow unsetting of location tax on exhibit modal #167

Open
spelkey-ucd opened this issue May 1, 2024 · 0 comments
Open

Allow unsetting of location tax on exhibit modal #167

spelkey-ucd opened this issue May 1, 2024 · 0 comments
Assignees
Labels
special collections ucdlib-asc plugin

Comments

@spelkey-ucd
Copy link
Member

Currently, if a user wants to remove all location tax terms from an exhibit, it has to be done in the "quick edit" setting of the exhibits list admin page - since the "none" option is disabled.

To enable this functionality from the modal, im thinking we have to:

  1. removed the disabled attribute from the select option
  2. in this line https://github.com/UCDavisLibrary/ucdlib-wp-plugins/blob/main/ucdlib-special/src/editor/lib/plugins/exhibit.js#L344, return an empty array if id is empty
@spelkey-ucd spelkey-ucd added the special collections ucdlib-asc plugin label May 1, 2024
@spelkey-ucd spelkey-ucd self-assigned this May 1, 2024
spelkey-ucd added a commit that referenced this issue May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
special collections ucdlib-asc plugin
Projects
None yet
Development

No branches or pull requests

1 participant