diff --git a/tjreports/site/models/reports.php b/tjreports/site/models/reports.php index 58bcfd4..6a3783d 100755 --- a/tjreports/site/models/reports.php +++ b/tjreports/site/models/reports.php @@ -928,6 +928,8 @@ public function getReportLink($reportToLink, $filters) */ public function getDefaultReport($pluginName) { + $db = JFactory::getDBO(); + JTable::addIncludePath(JPATH_ROOT . '/administrator/components/com_tjreports/tables'); $reportTable = JTable::getInstance('Tjreport', 'TjreportsTable', array('dbo', $db)); $reportTable->load(array('plugin' => $pluginName, 'default' => 1));