X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/25f3a23bc8794b77a1b5fa1e5e7f9c38a152dd8f..f3da69fb1b882c7fe8feb765ad0558f13706931a:/apps/workbench/app/helpers/application_helper.rb diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index eb729d8744..43c96b5536 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -90,8 +90,8 @@ module ApplicationHelper else begin if resource_class.name == 'Collection' - link_name = collections_for_object(link_uuid).first.friendly_link_name - else + link_name = collections_for_object(link_uuid).andand.first.andand.friendly_link_name + else link_name = object_for_dataclass(resource_class, link_uuid).friendly_link_name end rescue RuntimeError @@ -275,7 +275,7 @@ module ApplicationHelper itemuuids << item.uuid selectables.append({name: item.uuid, uuid: item.uuid, type: dataclass.to_s}) end - + itemuuids.each do |itemuuid| links_for_object(itemuuid).each do |link| if link.link_class.in? ["tag", "identifier"]