[Vtigercrm-commits] [vtiger development] #4568: Advanced search is not working properly with custom fields

vtiger development vtiger-tickets at trac.vtiger.com
Mon Dec 3 03:55:20 EST 2007


#4568: Advanced search is not working properly with custom fields
------------------------+---------------------------------------------------
  Reporter:  simmi      |       Owner:  allen
      Type:  defect     |      Status:  new  
  Priority:  critical   |   Milestone:  5.0.4
 Component:  vtigercrm  |     Version:  5.0.4
Resolution:             |    Keywords:       
------------------------+---------------------------------------------------
Comment (by prasad):

 The fix is similar to:

 File: include/utils/SearchUtils.php
 Function: getWhereCondition

 The last else should take care of appending the correct matchtype as shown
 below:
 {{{
 else
 {
   if($i != $tot_no_criteria-1) {
     if($srch_cond == 'dcts' || $srch_cond == 'isn' || $srch_cond == 'is')
         $matchtype = "and";
     else
         $matchtype = "or";
   if($srch_cond == 'is' && $srch_val !='')
         $matchtype = "or";
   }
   $adv_string .= " ".getSearch_criteria($srch_cond,$srch_val,$tab_col)."
 ".$matchtype;
 }
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4568#comment:2>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list