end
end
- def copy_items
- move_or_copy_project_items :copy
- end
-
- def move_items
- move_or_copy_project_items :move
- end
-
- def move_or_copy_project_items action
- uuids_to_add = session[:selected_move_or_copy_items]
- move_or_copy_items action, uuids_to_add, params['target']
- session[:selected_move_or_copy_items] = nil
- redirect_to @object
- end
-
def destroy
while (objects = Link.filter([['owner_uuid','=',@object.uuid],
['tail_uuid','=',@object.uuid]])).any?
objects_and_names << [object, @name_link_for[object.uuid]]
elsif object.respond_to? :name
objects_and_names << [object, object]
- elsif not Collection.attribute_info.include?(:name)
+ else
objects_and_names << [object,
Link.new(owner_uuid: @object.uuid,
tail_uuid: @object.uuid,
head_uuid: object.uuid,
link_class: "name",
name: "")]
+
end
end
objects_and_names