Hello,
I did and here is a link to my post
http://www.sugarcrm.com/forums/showthread.php?t=24969
I have even patched patched EditView in Emails:
PHP Code:
if($focus->parent_type == 'Cases'){
$all_contacts = $myCase->get_contacts();
$to_addrs_ids = '';
$to_addrs_emails = '';
$to_addrs_names = '';
$to_addrs = '';
$tmp_scr = '';
foreach($all_contacts as $aContact){
$to_addrs_emails .= $aContact->email1.'; ';
$to_addrs_ids .= $aContact->id.'; ';
$to_addrs_names .= $aContact->salutation.' '.$aContact->first_name.' '.$aContact->last_name.'; ';
$to_addrs .= $aContact->first_name.' '.$aContact->last_name.' <'.$aContact->email1.'>; ';
$tmp_scr .= 'set_current_parent("'.$aContact->id.'","'.$aContact->email1.'" ,"'.$aContact->first_name.' '.$aContact->last_name.'","");';
}
$focus->to_addrs = $to_addrs;
$focus->to_addrs_ids = $to_addrs_ids;
$focus->to_addrs_names = $to_addrs_names;
$focus->to_addrs_emails = $to_addrs_emails;
$xtpl->assign('TO_ADDRS', $focus->to_addrs);
$xtpl->assign('TO_ADDRS_IDS', $focus->to_addrs_ids);
$xtpl->assign('TO_ADDRS_NAMES', $focus->to_addrs_names);
$xtpl->assign('TO_ADDRS_EMAILS', $focus->to_addrs_emails);
}
These are exactly the variables that will change when you SELECT EXPLICITLY your contact.
After all these things, I AM STILL UNABLE TO MAKE IT RUN
Regards,
Youssef AOUN
Bookmarks