sugarcrm/sugarcrm_dev — Issue #69: Bug in SugarCE-6.4.0RC2
Author: A13xs
Created: 2012-01-03 08:36:41+00:00
State: open

Fatal error in Administration->study->module users->relationship

To fix modify the file include\SubPanel\SubPanelDefinitions.php

Change this:

if (! empty ( $module_name ))
{
$bean_name = $beanList [ $this->get_module_name () ] ;

$this->bean_name = $bean_name ;

include_once ($beanFiles [ $bean_name ]) ;
$this->template_instance = new $bean_name ( ) ;
$this->template_instance->force_load_details = true ;
$this->table_name = $this->template_instance->table_name ;
//$this->db_fields=$this->template_instance->column_fields;
}

For this:

if (! empty ( $module_name ))
{
if (in_array( $this->get_module_name (), $beanList))
{
$bean_name = $beanList [ $this->get_module_name () ] ;

$this->bean_name = $bean_name ;

include_once ($beanFiles [ $bean_name ]) ;
$this->template_instance = new $bean_name ( ) ;
$this->template_instance->force_load_details = true ;
$this->table_name = $this->template_instance->table_name ;
//$this->db_fields=$this->template_instance->column_fields;
}
}