From 099878cda61f8c47371f6f5f31b4fcf6acd3e27c Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 17 Oct 2008 11:02:13 +0000 Subject: [PATCH] Fixed pdf_debug mode. --- reporting/includes/reporting.inc | 6 +++--- reporting/includes/reports_classes.inc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index c79aee7e..f57739d6 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -69,7 +69,7 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no) // function print_link($link_text, $rep, $pars = array(), $dir = '') { - global $path_to_root; + global $path_to_root, $pdf_debug; $url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir; @@ -78,8 +78,8 @@ function print_link($link_text, $rep, $pars = array(), $dir = '') } $pars[] = 'REP_ID='.urlencode($rep); $url .= implode ('&', $pars); - - return "$link_text"; + $class = $pdf_debug ? '' : "class='printlink'"; + return "$link_text"; } function get_first_bank_account() diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 8f501fe0..e244b8ff 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -43,7 +43,7 @@ class BoxReports $st_params .= ""; @@ -103,12 +103,12 @@ class Report function getDisplay() { - global $path_to_root, $use_date_picker; + global $path_to_root, $use_date_picker, $pdf_debug; $st = hidden('REP_ID', $this->id, false); $st .= submit('Rep'.$this->id, _("Display: ") . access_string($this->name,true), - false, '', true) . '

'; + false, '', $pdf_debug==0) . '

'; $dummy = ""; if ($this->ar_params==null) return ""; -- 2.30.2