I've recently upgraded to 5.5 from 5.2. In the 5.5 version, whenever I am viewing a user record and click edit, I receive the following error:
Fatal error: Call to a member function assign() on a non-object in D:\wamp\www\SugarCRM\modules\DynamicFields\Dynamic Field.php on line 745
Here is the code that is referred to:
PHP Code:
function populateXTPL(&$xtpl, $view){
if($this->bean->hasCustomFields()){
$results = $this->getAllFieldsView($view, 'xtpl');
foreach($results as $name=>$value){
if(is_array($value['xtpl'])){
foreach($value['xtpl'] as $xName=>$xValue){
$xtpl->assign(strtoupper($xName), $xValue); // <--- Line 745
}
}else{
$xtpl->assign(strtoupper($name), $value['xtpl']);
}
}
}
}
The error happens when trying to edit any user record.
I restored my 5.2 version, and the error does not occur.
Any ideas?
Bookmarks