From f7a48c6b5975259f20780a6353a1325852e71850 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Fri, 26 Nov 2010 22:54:02 -0500 Subject: Fix copy collection Collection with subcollections was failing to pass copy callback to the subcollections. --- collection/collection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/collection/collection.c b/collection/collection.c index f24102b..4bee949 100644 --- a/collection/collection.c +++ b/collection/collection.c @@ -2091,10 +2091,12 @@ static int col_copy_traverse_handler(struct collection_item *head, switch (traverse_data->mode) { case COL_COPY_NORMAL: - error = col_copy_collection(&other, + error = col_copy_collection_with_cb(&other, *((struct collection_item **)(current->data)), current->property, - COL_COPY_NORMAL); + COL_COPY_NORMAL, + traverse_data->copy_cb, + traverse_data->ext_data); if (error) { TRACE_ERROR_NUMBER("Copy subcollection returned error:", error); return error; -- cgit