I changed the following in 6.1.2:
ad 2:
(Account name as opportunity name)
copy: modules/Leads/views/view.convertlead.php
to: custom/modules/Leads/views/view.convertlead.php
search for
PHP Code:
else if ($module == "Opportunities" && $field == 'name' && $opportunityNameInLayout) {
$focus->name = $this->focus->opportunity_name;
}
replace with
PHP Code:
else if ($module == "Opportunities" && $field == 'name') {
if ($opportunityNameInLayout) {
$focus->name = $this->focus->opportunity_name;
} else {
$focus->name = $this->focus->account_name;
}
}
ad 4:
(preselect opp for creation; applies to activities as well)
copy: modules/Leads/metadata/convertdefs.php
to: custom/modules/Leads/metadata/convertdefs.php
search for
PHP Code:
$viewdefs['Opportunities']['ConvertLead'] = array(
'copyData' => true,
'required' => false,
'templateMeta' => array(
replace with
PHP Code:
$viewdefs['Opportunities']['ConvertLead'] = array(
'copyData' => true,
'required' => false,
'default_action' => 'create',
'templateMeta' => array(
If you set "required" as true instead of adding "default_action", the creation of an opportunity cannot be deselected.
HTH,
helping
Bookmarks