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 for no items, no alt_text in model #3295

Merged
merged 1 commit into from
Nov 25, 2024
Merged

allow for no items, no alt_text in model #3295

merged 1 commit into from
Nov 25, 2024

Conversation

dnoneill
Copy link
Contributor

@dnoneill dnoneill commented Nov 25, 2024

closes sul-dlss/exhibits#2656

To recreate, create a feature page. Add an item row widget. Save without adding an item. This means there will be zero items that can have alt text.

Also for old instances of spotlight, the alt_text fields don't exist. Also the line next if item['alt_text_backup'].nil? is not necessary anymore since we are using the model to determine which fields can have alt text (this is leftover from a different approach).

@corylown corylown merged commit 9a6574d into main Nov 25, 2024
7 checks passed
@corylown corylown deleted the 2656-alt-text-bug branch November 25, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exhibits/stage] ZeroDivisionError: divided by 0
2 participants