Thursday, November 20, 2008 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Mainstream Forums  Bugs  Phone number Se...
 Phone number Search Version 4.2.0 Build 1.4.2681.40941
 
rschepis
36 posts
www.promero.com
Joined
7/12/2006

Phone number Search Version 4.2.0 Build 1.4.2681.40941
Posted: 06 Dec 07 4:25 PM Modified By rschepis  on 12/6/2007 4:27:56 PM)

There seems to be a glitch when searching for phone numbers.  If the phone number has dashes in it, the search.  Here are the 2 examples:

select *             
  from vwCONTACTS_List
 where 1 = 1         
   and (          NAME like '%2077754363%' escape '\'       )
    or (          ACCOUNT_NAME like '%2077754363%' escape '\'       )
    or (          ASSISTANT like '%2077754363%' escape '\'       )
    or (          EMAIL1 like '%2077754363%' escape '\'       )
    or (          EMAIL2 like '%2077754363%' escape '\'       )
    or (          PHONE_HOME like '%2077754363%' escape '\'       )
    or (          PHONE_MOBILE like '%2077754363%' escape '\'       )
    or (          PHONE_WORK like '%2077754363%' escape '\'       )
    or (          PHONE_OTHER like '%2077754363%' escape '\'       )
    or (          PHONE_FAX like '%2077754363%' escape '\'       )
    or (          ASSISTANT_PHONE like '%2077754363%' escape '\'
select *             
  from vwCONTACTS_List
 where 1 = 1         
   and (          NAME like '%207-775-4363%' escape '\'       )
    or (          ACCOUNT_NAME like '%207-775-4363%' escape '\'       )
    or (          ASSISTANT like '%207-775-4363%' escape '\'       )
    or (          EMAIL1 like '%207-775-4363%' escape '\'       )
    or (          EMAIL2 like '%207-775-4363%' escape '\')

Notice how the one with Dashes never even looks in the phone field

support
2095 posts
1st
Joined
1/3/2006

Re: Phone number Search Version 4.2.0 Build 1.4.2681.40941
Posted: 07 Dec 07 12:33 AM Modified By support  on 12/7/2007 12:39:27 AM)

The problem is that we are trying to distinguish between a search that contains numbers and one that contains text.  In ~/Contacts/SearchContacts.ascx.cs, we use Information.IsNumeric() to determine if we should search phone numbers.  In retrospect, this seems inadequate.

 

You can just remove the if ( Information.IsNumeric(sUnifiedSearch) ) condition.

rschepis
36 posts
www.promero.com
Joined
7/12/2006

Re: Phone number Search Version 4.2.0 Build 1.4.2681.40941
Posted: 07 Dec 07 9:54 AM

OK, we can modify this.

Do you plan on modifying the base code?  We try to minimize custom modifications to keep upgrades easy.

In this case, I hope you will agree phone numbers are numeric and are the perfect candidate to search a contact record phone field.

If the input mask allows dashes then the search should also return the input value.

Thanks for such a quick reply.

 

support
2095 posts
1st
Joined
1/3/2006

Re: Phone number Search Version 4.2.0 Build 1.4.2681.40941
Posted: 07 Dec 07 10:46 AM
We have already updated the base. 
  Mainstream Forums  Bugs  Phone number Se...

Forum Home  Search       

Copyright (c) 2006-2008 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by Perpetual Motion Interactive Systems Inc.
SplendidCRM and SplendidCRM Software are trademarks of SplendidCRM Software, Inc. SugarCRM is a trademark of SugarCRM Inc. in the United States, the European Union and other countries. All other trademarks used in this web site are the property of their respective owners.