SugarCRM SupPanel删除键不好用
在include\generic\DeleteRelationship.php
if($bean_name == 'Team'){
$focus->retrieve($record);
$focus->remove_user_from_team($linked_id);
}else{
// cut it off:
$focus->load_relationship($linked_field);
$bean_name1=$beanList[$_REQUEST['linked_field']];
require_once($beanFiles[$bean_name1]);
$f = new $bean_name1();
$f->mark_deleted($linked_id);//重点
}