[Vtigercrm-commits] [vtiger development] #7644: Mobile Module API: Permission denied with fetchRecordWithGrouping

vtiger development vtiger-tickets at trac.vtiger.com
Sat Mar 2 12:13:34 PST 2013


#7644: Mobile Module API: Permission denied with fetchRecordWithGrouping
-------------------------+--------------------------------------------------
 Reporter:  prasad       |        Owner:  developer
     Type:  defect       |       Status:  new      
 Priority:  minor        |    Milestone:  6.0.0    
Component:  webservices  |      Version:  5.4.0    
 Severity:  Medium       |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by prasad):

 The last-workaround has issue, consider the following fix.

 File: modules/Mobile/API/ws/FetchRecord.php
 {{{
         function fetchRecordLabelForId($id, $user) {
                 $value = null;

                 if (is_array($id)) { // Already resolved? - BUG FIX
                         $id = $id['value'];
                 }

                 if (isset($this->resolvedValueCache[$id])) {
                         $value = $this->resolvedValueCache[$id];
                 } else if(!empty($id)) {
                         $value = trim(vtws_getName($id, $user));
                         $this->resolvedValueCache[$id] = $value;
                 } else {
                         $value = $id;
                 }
                 return $value;
         }
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7644#comment:4>
vtiger development <http://trac.vtiger.com/>
vtiger CRM



More information about the vtigercrm-commits mailing list