- In a listviewdefs, no matter how you define your relationship identifying different field than name to show the object related, it will always show the concatenation of first_name y last_name.
To avoid this, i found the Ligne: 3149 of data/SugarBean,php
it should be:PHP Code://if rnanme is set to 'name', and bean files exist, then check if field should be a concatenated name
global $beanFiles, $beanList;
if($data['rname'] && !empty($beanFiles[$beanList[$rel_module]])) {
//create an instance of the related bean
require_once($beanFiles[$beanList[$rel_module]]);
$rel_mod = new $beanList[$rel_module]();
//if bean has first and last name fields, then name should be concatenated
if(isset($rel_mod->field_name_map['first_name']) && isset($rel_mod->field_name_map['last_name'])){
$data['db_concat_fields'] = array(0=>'first_name', 1=>'last_name');
}
}
did someone have this problem?PHP Code:if($data['rname'] =='name'


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks