Hi,
To display a phone number for a lead, you need to modify Call.php slightly.
First, you need to change the query at around #362 in fill_in_additional_parent_fields()
PHP Code:
if ($this->parent_type == "Leads" || $this->parent_type == "Contacts") {
// $query = "SELECT first_name, last_name, assigned_user_id parent_name_owner from $parent->table_name where id = '$this->parent_id'";
$query = "SELECT first_name, last_name, phone_work, assigned_user_id parent_name_owner from $parent->table_name where id = '$this->parent_id'";
}
then insert the following line at around #389 in the same function.
PHP Code:
$this->parent_name = '';
if ($row['first_name'] != '') $this->parent_name .= stripslashes($row['first_name']). ' ';
if ($row['last_name'] != '') $this->parent_name .= stripslashes($row['last_name']);
//Add phone_work
if ($row['phone_work'] != '') $this->contact_phone = $row['phone_work'];
//END
Bookmarks