From: radhika Date: Wed, 11 Jun 2014 16:22:32 +0000 (-0400) Subject: 2871: fix the typo caught by integration test X-Git-Tag: 1.1.0~2562^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/9bda231180fc58e67b0c322c16be223154965b66 2871: fix the typo caught by integration test --- diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index 426a82534d..2b7ec147a4 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -265,7 +265,7 @@ module ApplicationHelper if attrvalue and !attrvalue.empty? links_for_object(attrvalue).each do |link| if link.link_class.in? ["tag", "identifier"] - attrtext += " [#{tag.name}]" + attrtext += " [#{link.name}]" end end selectables.append({name: attrtext, uuid: attrvalue, type: dataclass.to_s}) @@ -280,8 +280,8 @@ module ApplicationHelper links_for_object(itemuuid).each do |link| if link.link_class.in? ["tag", "identifier"] selectables.each do |selectable| - if selectable['uuid'] == tag.head_uuid - selectable['name'] += ' [' + tag.name + ']' + if selectable['uuid'] == link.head_uuid + selectable['name'] += ' [' + link.name + ']' end end end