jcc
Member
Joomla! 2.5.6
Fabrik - github Fabrik-fabrik-3.0.5-1051-g7298767
I have a List on Account with a number of related data lists/forms; only 1 of these is set to link to a related list (Audit History). The link shows up correctly in the on the Account List. If I change set the Account form "Show related data links", when I try to bring up a record in the Account Form, I get a blank browser and an exception in the httpd error_log:
PHP Fatal error: Call to a member function getFullName() on a non-object in .../components/com_fabrik/models/list.php on line 1150, referer: ...
Line 1150 is the last line in this code:
Not sure how to fix this...
Fabrik - github Fabrik-fabrik-3.0.5-1051-g7298767
I have a List on Account with a number of related data lists/forms; only 1 of these is set to link to a related list (Audit History). The link shows up correctly in the on the Account List. If I change set the Account form "Show related data links", when I try to bring up a record in the Account Form, I get a blank browser and an exception in the httpd error_log:
PHP Fatal error: Call to a member function getFullName() on a non-object in .../components/com_fabrik/models/list.php on line 1150, referer: ...
Line 1150 is the last line in this code:
Code:
public function getRecordCounts(&$element, $pks = array())
{
if (!isset($this->recordCounts))
{
$this->recordCounts = array();
}
$k = $element->element_id;
if (array_key_exists($k, $this->recordCounts))
{
return $this->recordCounts[$k];
}
$listModel = JModel::getInstance('List', 'FabrikFEModel');
$listModel->setId($element->list_id);
$db = $listModel->getDb();
$elementModel = $listModel->getFormModel()->getElement($element->element_id, true);
$key = $elementModel->getFullName(false, false, false);
Not sure how to fix this...