[Vtigercrm-commits] [vtiger development] #5449: vtlib: two fields of uitype=10 break reports

vtiger development vtiger-tickets at trac.vtiger.com
Thu Jan 22 18:34:06 EST 2009


#5449: vtlib: two fields of uitype=10 break reports
------------------------+---------------------------------------------------
 Reporter:  joebordes   |       Owner:  developer
     Type:  defect      |      Status:  new      
 Priority:  unassigned  |   Milestone:  5.1.0    
Component:  vtigercrm   |     Version:  5.1.0-wip
 Keywords:              |  
------------------------+---------------------------------------------------
 Error: Not unique table/alias: 'vtiger_crmentityRelModuleName' due to the
 duplication of the crmentity alias in SQL statement. I have these two
 fields on the timesheet module:
 {{{
 $field2 = new Vtiger_Field();
 $field2->name = 'customer_id';
 $field2->label= 'Customer';
 $field2->column = 'customer_id';
 $field2->columntype = 'VARCHAR(100)';
 $field2->uitype = 10;
 $field2->typeofdata = 'V~O';
 $field2->presence = 0;
 $field2->quickcreate = 0;
 $block1->addField($field2);
 $field2->setRelatedModules(Array('Contacts','Accounts'));

 $field3 = new Vtiger_Field();
 $field3->name = 'parent_id';
 $field3->label= 'Document';
 $field3->column = 'parent_id';
 $field3->columntype = 'VARCHAR(100)';
 $field3->uitype = 10;
 $field3->typeofdata = 'V~O';
 $field3->presence = 0;
 $field3->quickcreate = 0;
 $block1->addField($field3);
 $field3->setRelatedModules(Array('Leads','Contacts','Accounts','Potentials','Products','Invoice','PurchaseOrder','SalesOrder','Quotes','HelpDesk'));
 }}}

 Joe
 TSolucio

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5449>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list