[Vtigercrm-commits] [Vtiger development] #8597: Importing Potentials with german locale leads to wrong amounts
Vtiger development
vtiger-tickets at trac.vtiger.com
Wed Jul 8 09:46:50 GMT 2015
#8597: Importing Potentials with german locale leads to wrong amounts
---------------------------+----------------------------
Reporter: Wilfried.Wolf | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 6.2.0
Severity: Medium | Keywords: Import, locale
---------------------------+----------------------------
This is due to the fact, that in modules/Import/actions/Data.php on line
498 vtiger is trying to format a currency value, that comes out of the
database with a locale.
{{{
} else if($fieldInstance->getFieldDataType() == 'currency'){
// While exporting we are exporting as user format, we
should import as db format while importing
$fieldData[$fieldName] =
CurrencyField::convertToDBFormat($fieldValue, $current_user,false);
continue;
}else {
}}}
just comment this out, and it will work fine (at least for this import)
{{{
} else if($fieldInstance->getFieldDataType() == 'currency'){
// While exporting we are exporting as user format, we
should import as db format while importing
// no, we should not here, because it comes out of the
database.
//$fieldData[$fieldName] =
CurrencyField::convertToDBFormat($fieldValue, $current_user,false);
continue;
}else {
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8597>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list