X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/87dc5129e903cb7452e06c936d8e5e581c4d2481..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 937c204148..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 @@ -245,7 +245,8 @@ module ApplicationHelper dn += '[value]' end - preload_uuids = [attrvalue] + # preload data + preload_uuids = [] items = [] selectables = [] @@ -274,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"]