3504: Support copy and moving collections on new apiserver
[arvados.git] / apps / workbench / app / controllers / projects_controller.rb
index d9ec0a6965323eb29d10b4b2d695218eaabfdbfe..43440fe2aa96506e35f305821007f71526fbc8dc 100644 (file)
@@ -86,7 +86,7 @@ class ProjectsController < ApplicationController
       uniq.
       each do |resource_class|
       resource_class.filter([['uuid','in',uuids_to_add]]).each do |dst|
-        if resource_class == Collection
+        if resource_class == Collection and not Collection.attribute_info.include?(:name)
           dst = Link.new(owner_uuid: target_uuid,
                          tail_uuid: target_uuid,
                          head_uuid: dst.uuid,