public function _display_edit_custom_report() { //load javascripts $this->document->addScript(JURI::base() . 'src/Cobalt/media/js/custom_reports.js'); //if we are editing an existing entry $id = $this->app->input->get('id'); if ($id != null) { $reportModel = new ReportModel(); $this->report = $reportModel->getCustomReports($id); } //assign references $this->columns = DealHelper::getAllCustomFields($id); }