From: Joe Hunt Date: Tue, 2 Sep 2008 09:38:26 +0000 (+0000) Subject: Bug when selecting report, List of Journal Entries, by type. Nothing selected. X-Git-Tag: 2.3-final~1489 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=97966b2963e49eee1523dceab67eaa2c6c2ee1b0;p=fa-stable.git Bug when selecting report, List of Journal Entries, by type. Nothing selected. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d433d9fb..388f1a3f 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 995a39d7..0dabe11c 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 = "