diff -r fd64c38c277d -r b46a585f6909 phonebookengines/contactsmodel/cntplsql/src/pplcontactitemmanager.cpp --- a/phonebookengines/contactsmodel/cntplsql/src/pplcontactitemmanager.cpp Thu May 27 12:45:19 2010 +0300 +++ b/phonebookengines/contactsmodel/cntplsql/src/pplcontactitemmanager.cpp Fri Jun 11 13:29:23 2010 +0300 @@ -647,7 +647,14 @@ CContactIdArray* CPplContactItemManager::MatchPhoneNumberL(const TDesC& aNumber, TInt aMatchLengthFromRight) { // Call comm address table - return static_cast(iCommAddrTable)->MatchPhoneNumberL(aNumber, aMatchLengthFromRight); + if (aMatchLengthFromRight == KBestMatchingPhoneNumbers) + { + return static_cast(iCommAddrTable)->BestMatchingPhoneNumberL(aNumber); + } + else + { + return static_cast(iCommAddrTable)->MatchPhoneNumberL(aNumber, aMatchLengthFromRight); + } } /**