I tried that with no change. I found some help here - http://www.sugarcrm.com/forums/showthread.php?t=29624. Specifically, I added the following to Meeting.php to add phone # and department from the Contacts.:
Code:
function create_new_list_query($order_by, $where,$filter=array(),$params=array(), $show_deleted = 0,$join_type='', $return_array = false,$parentbean, $singleSelect = false) {
$ret_arr = parent::create_new_list_query($order_by, $where,$filter,$params, $show_deleted,$join_type, true, $parentbean, $singleSelect);
if (strpos($order_by, 'contact_phone') !== false) {
$ret_arr['order_by'] = ' ORDER BY contacts.phone_work '.(strpos($order_by, 'ASC') === false ? ' DESC' : ' ASC');
} else if (strpos($order_by, 'contact_department') !== false) {
$ret_arr['order_by'] = ' ORDER BY contacts.department '.(strpos($order_by, 'ASC') === false ? ' DESC' : ' ASC');
}
return $ret_arr;
} Unfortunately, this doesn't extend to search capability so I have a new item to research.
Bookmarks