php - SugarCRM phone query on basic search -


I have applied the phone formatting modification to the phone number of the contact. Now, when a user saves the contact's phone number, it will be saved in the format xxx-xxxx instead of the default xxxxxxxxxx.

However, I want to do searches that can either be recorded with the input of formats I have modified /custom/modules/accounts/metadata/SearchFields.php with these changes: / P>

  'phone_office' = & gt; Select 'array' ('query_type' = & gt; 'default', 'operator' = & gt; 'subquery', 'subquery' = & gt; array ('Select' from phone_operays accounts where '%' ', like' phone_office ' (Replay (Replay (Replay (Phone _office, "", ""), "-", ""), "(", ""), "", "", "", "", "") Like '', 'or' = & gt; true), 'db_field' => array ('phone_office'), 'vname' => 'lbl_phon_office',),   

But after these changes, the basic or advanced search using Firefox only puts the browser in a non-responsive state Obviously, no one can use an array in 'subquery' because when I set it to accept one of only one of the selected statements, then they follow through it, do somebody correct me Can help?

Try

  'phone_office' = & gt; Array ('query_type' = & gt; 'default', 'operator' = & gt; 'subquery', 'subquery' = & gt; array (select 'office_Ofice accounts where the office like phone', 'accounts' Select "Change" (change (Phone _office, "+", like "Change") as the Phone Outlook (Change (''), "(", ""), ")", "", "", "" ")," - "," array ('phone_office'), 'vname' = & gt; 'lbl_phon_office'),   

% is added by the Chinese or '= & gt; True), 'db_field' = & gt;. See the module \ Employees \ metadata \ SearchFields.php for the phone

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -