Ignore:
Timestamp:
04/26/11 14:18:05 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1791 - Mensagem indevida na pesquisa por e-mail ou por telefone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/contactcenter/js/cc_full_search.js

    r3628 r4142  
    8080        data['fields'] = new Array(); 
    8181         
    82         data['search_for'] = Element('ccSearchInp0').value; 
    83  
    84         var invalidChars = /[\%\?]/; 
     82        data['search_for'] = Element('ccSearchInp0').value + " "  
     83                                           + Element('ccSearchInp1').value + " "  
     84                                           + Element('ccSearchInp2').value + " "  
     85                                           + Element('ccSearchInp3').value + " "; 
     86                var invalidChars = /[\%\?]/; 
    8587        if(invalidChars.test(data['search_for']) || invalidChars.test(data['search_for_area'])){ 
    8688                showMessage(Element('cc_msg_err_invalid_serch').value); 
     
    104106                return; 
    105107        } 
    106  
     108         
     109        if (Element('ccSearchInp0').value == "") 
     110                data['search_for'] = ""; 
     111                 
    107112        if (type=='groups') { 
    108113                data['fields']['id']     = 'group.id_group';                     
Note: See TracChangeset for help on using the changeset viewer.