In /include/export_utils.php there is a unused feature
At the beginning of function export you can find two array definitions for $contact_fields and $account_fields.
Just create a third one like this:
PHP Code:
* * *
$opportunity_fields = array(
"id"=>"Opportunity ID",
"name"=>"Opportunity Name",
"amount_usdollar"=>"Amount EUR",
"description"=>"Description"
);
$focus = 0;
$content = '';
* * *
Then go to the end of the function export and insert after the line
$fields_array = $db->getFieldsArray($result);
the following code:
PHP Code:
if ($bean == "Opportunity")
{
foreach ($fields_array as $key => $value)
{
if (isset($opportunity_fields[$value]))
{
$fields_array[$key] = $opportunity_fields[$value];
}
}
}
This patch is not upgrade safe, but it works fine.
You can do the same for accounts and contacts...
Bookmarks