From 8321000eb2f0f22433a1f7d0ecac51179aedc294 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 2 Sep 2008 09:38:26 +0000 Subject: [PATCH] Bug when selecting report, List of Journal Entries, by type. Nothing selected. --- CHANGELOG.txt | 5 ++ reporting/includes/reports_classes.inc | 102 ++++++++++++------------- reporting/rep702.php | 12 +-- 3 files changed, 62 insertions(+), 57 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d433d9f..388f1a3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,11 @@ Legend: ! -> Note $ -> Affected files +02-Sep-2008 Joe Hunt +# Bug when selecting report, List of Journal Entries, by type. Nothing selected. +$ /reporting/includes/reports_classes.inc +$ /reporting/rep702.php + 01-Sep-2008 Joe Hunt ! Up-to-date translation file (some strings were missing, single quotations in .inc files) $ /lang/new_language_template/LC_MASSAGES/empty.po diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 995a39d..0dabe11 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -1,24 +1,24 @@ ar_classes = array(); } - function addReportClass($class_name) + function addReportClass($class_name) { $this->ar_classes[$class_name] = array(); } - function addReport($class_name, $id, $rep_name, $params=null) + function addReport($class_name, $id, $rep_name, $params=null) { $this->ar_classes[$class_name][] = new Report($id,$rep_name,$params); } - function getDisplay($class=null) + function getDisplay($class=null) { global $table_style2; $temp = array_values($this->ar_classes); @@ -28,12 +28,12 @@ class BoxReports $st_reports = ""; $st_params = ""; $st_classes = "" . _("Report Classes:") . "
"; - foreach($this->ar_classes as $key=>$value) + foreach($this->ar_classes as $key=>$value) { $style = $class_counter==0 ? '' : $style = "style='display:none'"; $st_classes .= "$key
"; $st_reports .= ""; - foreach($value as $report) + foreach($value as $report) { $st_reports .= ""; $st_params .= "
" . _("Reports For Class: ") . " $key
" . $report->name . "
"; @@ -71,27 +71,27 @@ class BoxReports } } -class Report +class Report { var $id; var $name; var $ar_params; - function Report($id, $name, $ar_params) + function Report($id, $name, $ar_params) { $this->id = $id; $this->name = $name; $this->ar_params = $ar_params; } - function getDisplay() + function getDisplay() { global $comp_path, $path_to_root, $use_date_picker; $rep_file = $comp_path.'/'.user_company(). - "/reporting/rep".$this->id.".php"; + "/reporting/rep".$this->id.".php"; if (!file_exists($rep_file)) $rep_file = $path_to_root ."/reporting/rep".$this->id.".php"; - + $st = "