[Vtigercrm-commits] [vtiger development] #6187: Overwriting records do not handle uitype 10 on import
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Jul 23 05:33:13 EDT 2009
#6187: Overwriting records do not handle uitype 10 on import
------------------------+---------------------------------------------------
Reporter: R.Cohen | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 5.1.0
Component: vtigercrm | Version: 5.1.0
Keywords: |
------------------------+---------------------------------------------------
When importing records that have links to other modules with uitype 10, if
a record is replacing an existing one (duplicate handling automatic
replace) the handling of the uitype does not happen. Fields are imported
as blanks instead of obtaining remote references.
This is because record inserts for overwrite is done in a different
function than the 'regular' import.
In ImportSave.php see function overwrite_duplicate_records($module,$focus)
which does not have the same code as function InsertImportRecords(...)
{{{
if($uitype == 10){
//added to handle security permissions for related modules :: for
e.g. Accounts/Contacts in Potentials
if(method_exists($focus, "add_related_to")){
if(!$focus->add_related_to($module, $fieldname)){
if(array_key_exists($fieldname,
$focus->required_fields)){
$do_save = 0;
$skip_required_count++;
continue 2;
}
}
}
}
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6187>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list