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

Breadcrumbs failing to load when ancestor record lacks a title, which causes the search record page to not load (v3.4.1) #3073

Open
jessemartinez opened this issue Nov 6, 2023 · 0 comments

Comments

@jessemartinez
Copy link

Expected Behavior

Search results should load the display_title metadata field for all ancestor records when the title field is not present.

Current Behavior

A search will fail to load when any of the returned records has an ancestor that does not have a title metadata field present.
The logs will show this error message

F, [2023-11-03T12:28:19.632891 #18786] FATAL -- : [cb72acaa-628e-49e3-a786-daa87cc0e1ed] ActionView::Template::Error (key not found: "title"):
F, [2023-11-03T12:28:19.633172 #18786] FATAL -- : [cb72acaa-628e-49e3-a786-daa87cc0e1ed]     33:         <%= render partial: 'shared/result_breadcrumbs_ancestor', locals: {
[cb72acaa-628e-49e3-a786-daa87cc0e1ed]     34:           :span_class => "#{ancestor_type}_name",
[cb72acaa-628e-49e3-a786-daa87cc0e1ed]     35:           :badge_type => ancestor_type,
[cb72acaa-628e-49e3-a786-daa87cc0e1ed]     36:           :body => ancestor.fetch('title'),
[cb72acaa-628e-49e3-a786-daa87cc0e1ed]     37:           :url => app_prefix(ancestor.fetch('uri')) } %>
[cb72acaa-628e-49e3-a786-daa87cc0e1ed]     38:       <% end %>

Possible Solution

It appears that there is a fix for this error that was committed back in August.

We hope that a patch release can be created soon that applies this fix.

Context

This is a major blocker for us.

Your Environment

  • Version used: v3.4.1
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

No branches or pull requests

1 participant