2985: fix typo
authorradhika <radhika@curoverse.com>
Mon, 28 Jul 2014 18:22:01 +0000 (14:22 -0400)
committerradhika <radhika@curoverse.com>
Mon, 28 Jul 2014 18:22:01 +0000 (14:22 -0400)
apps/workbench/app/controllers/projects_controller.rb

index d76dfe861618aefcfe340ca30044f8363b6a9c24..d243ef426800b44fe5cd9b351be67bc33b8222d4 100644 (file)
@@ -62,9 +62,9 @@ class ProjectsController < ApplicationController
       each do |resource_class|
       resource_class.filter([['uuid','in',uuids_to_add]]).each do |dst|
         if resource_class == Collection
-          dst = Link.new(owner_uuid: target_object.uuid,
-                         tail_uuid: target_object.uuid,
-                         head_uuid: target_uuid,
+          dst = Link.new(owner_uuid: target_uuid,
+                         tail_uuid: target_uuid,
+                         head_uuid: dst.uuid,
                          link_class: 'name',
                          name: target_uuid)
         else