diff -r 156f692b1687 -r b99b84bcd2d1 contentstorage/castorage/src/casqlitestorage.cpp --- a/contentstorage/castorage/src/casqlitestorage.cpp Fri Jun 11 13:58:37 2010 +0300 +++ b/contentstorage/castorage/src/casqlitestorage.cpp Wed Jun 23 18:33:40 2010 +0300 @@ -320,7 +320,7 @@ // --------------------------------------------------------------------------- // void CCaSqLiteStorage::GetParentsIdsL( const RArray& aEntryIdArray, - RArray& aParentIdArray ) + RArray& aParentIdArray, TBool aCheckParentsParent ) { CCaSqlQuery* sqlGetParentIdsQuery = CCaSqlQuery::NewLC( iSqlDb ); CaSqlQueryCreator::CreateGetParentsIdsQueryL( aEntryIdArray, @@ -334,7 +334,7 @@ TInt parentCount = sqlGetParentIdsQuery->ExecuteL( aParentIdArray, CCaSqlQuery::EGroupTable ); CleanupStack::PopAndDestroy( sqlGetParentIdsQuery ); - if( parentCount > 0 ) + if( aCheckParentsParent && parentCount > 0 ) { GetParentsIdsL( aParentIdArray, aParentIdArray ); } @@ -910,3 +910,4 @@ } } +