[Vtigercrm-commits] [vtiger development] #6199: Reset column_fields of module instance during MassEditSave

vtiger development vtiger-tickets at trac.vtiger.com
Sun Jul 26 23:55:58 EDT 2009


#6199: Reset column_fields of module instance during MassEditSave
------------------------+---------------------------------------------------
 Reporter:  prasad      |       Owner:  developer
     Type:  defect      |      Status:  new      
 Priority:  unassigned  |   Milestone:  5.1.1    
Component:  vtigercrm   |     Version:  5.1.0    
 Keywords:              |  
------------------------+---------------------------------------------------
 Reseting column_fields of module instance is required to avoid stale data
 or wrong update during MassEdit.

 File: MassEditSave.php under each module

 ~line: 34

 {{{
 // Save each module record with update value.
 $focus->retrieve_entity_info($recordid, $currentModule);
 $focus->mode = 'edit';
 }}}

 should be:

 {{{
 foreach($focus->column_fields as $key=>$value) {
     $focus->column_fields[$key] = '';
 }
 // Save each module record with update value.
 $focus->retrieve_entity_info($recordid, $currentModule);
 $focus->mode = 'edit';
 }}}

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




More information about the vtigercrm-commits mailing list