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

records-ui: fix missing field config search link generation #2785

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions invenio_app_rdm/records_ui/views/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def namespace_url(field):
return namespaces[namespace] + namespace_value


def custom_fields_search(field, field_value, field_cfg):
def custom_fields_search(field, field_value, field_cfg=None):
"""Get custom field search url."""
namespace_array = field.split(":")
namespace = namespace_array[0]
Expand All @@ -177,7 +177,7 @@ def custom_fields_search(field, field_value, field_cfg):
if not namespaces.get(namespace):
return None

localised_title = field_cfg.get("locale")
localised_title = (field_cfg or {}).get("locale")
if localised_title:
locale = get_locale()
if not locale:
Expand Down