[Vtigercrm-commits] [vtiger development] #5347: getRecordOwnerId() fails when group assigned to new module

vtiger development vtiger-tickets at trac.vtiger.com
Fri Sep 5 19:14:04 EDT 2008


#5347: getRecordOwnerId() fails when group assigned to new module
------------------------+---------------------------------------------------
 Reporter:  joebordes   |       Owner:  developer
     Type:  defect      |      Status:  new      
 Priority:  unassigned  |   Milestone:  5.1.0    
Component:  vtigercrm   |     Version:  5.0.4    
 Keywords:              |  
------------------------+---------------------------------------------------
 In the include/utils/utils.php::getRecordOwnerId() function there is an
 if-else cascade to fetch the group that owns an entity. This cascade
 defaults to an sql that uses the construction:

 select vtiger_groups.groupid from vtiger_".$module."grouprelation inner...

 In the case of a new module, for example Timesheet, this ends up calling
 the table vtiger_Timesheetgrouprelation, which does not exist because the
 real table is all lower case letters (as all the rest in the application).

 I propose converting the module name to lower case as the alternative of
 creating the database table in camelcase is a lot more work.

 Joe
 TSolucio

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




More information about the vtigercrm-commits mailing list