2871: handle if there is no friendly_link_name in link
authorradhika <radhika@curoverse.com>
Thu, 5 Jun 2014 15:03:11 +0000 (11:03 -0400)
committerradhika <radhika@curoverse.com>
Thu, 5 Jun 2014 15:03:11 +0000 (11:03 -0400)
apps/workbench/app/helpers/application_helper.rb

index 5cfe475125900c9679231f418304e43e5923763a..43c96b55366e8a3a583b57fc82717c58f19c99a1 100644 (file)
@@ -90,7 +90,7 @@ module ApplicationHelper
           else
             begin
               if resource_class.name == 'Collection'
-                link_name = collections_for_object(link_uuid).first.friendly_link_name
+                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