2871: fix the typo caught by integration test
authorradhika <radhika@curoverse.com>
Wed, 11 Jun 2014 16:22:32 +0000 (12:22 -0400)
committerradhika <radhika@curoverse.com>
Wed, 11 Jun 2014 16:22:32 +0000 (12:22 -0400)
apps/workbench/app/helpers/application_helper.rb

index 426a82534dc2d300acdf5c2b472db077b6e72d86..2b7ec147a47759c03985a3c4cccac2b725328a6e 100644 (file)
@@ -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