From 3009c13c1826f279c3536fb541c8a156ffad582c Mon Sep 17 00:00:00 2001 From: Syphax Date: Thu, 14 Nov 2024 10:54:55 +0100 Subject: [PATCH] fix search federation portal name as nil issue --- app/helpers/federation_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/federation_helper.rb b/app/helpers/federation_helper.rb index d961712bc..14e966037 100644 --- a/app/helpers/federation_helper.rb +++ b/app/helpers/federation_helper.rb @@ -125,8 +125,7 @@ def alert_message_if_federation_error(errors, &block) def class_federation_configuration(class_object) is_external = federation_external_class?(class_object) - portal_name = is_external ? helpers.portal_name_from_uri(class_object.links['ui']) : nil - + portal_name = is_external ? helpers.portal_name_from_uri(class_object.links['ui']) : helpers.portal_name result = { portal_name: portal_name, portal_color: is_external ? federated_portal_color(portal_name) : nil,