[Vtigercrm-commits] [vtiger development] #6449: Webservice Query: SELECT on Leads does not eliminate converted ones

vtiger development vtiger-tickets at trac.vtiger.com
Tue Dec 1 12:42:46 EST 2009


#6449: Webservice Query: SELECT on Leads does not eliminate converted ones
-------------------------+--------------------------------------------------
  Reporter:  prasad      |       Owner:  developer
      Type:  defect      |      Status:  new      
  Priority:  unassigned  |   Milestone:  5.2.0    
 Component:  vtigercrm   |     Version:  5.1.0    
Resolution:              |    Keywords:           
-------------------------+--------------------------------------------------
Comment (by prasad):

 To overcome this, here is the quick fix I tried.

 File: include/Webservices/VtigerModuleOperation.php
 {{{
 function query($q) {
 // ...
 $mysql_query = $parser->getSql();
 $meta = $parser->getObjectMetaData();
 // '''WORKAROUND FIX: Allowing selecting only non-converted Leads'''
 if($meta->getTabName() == 'Leads') {
     $mysql_query = str_replace_once("WHERE",
         "WHERE vtiger_leaddetails.converted=0 AND ", $mysql_query);
 }
 // '''END'''
 $this->pearDB->startTransaction();
 // ...
 }}}

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




More information about the vtigercrm-commits mailing list