From: Janusz Dobrowolski Date: Fri, 17 Oct 2008 11:02:13 +0000 (+0000) Subject: Fixed pdf_debug mode. X-Git-Tag: v2.4.2~19^2~1846 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=099878cda61f8c47371f6f5f31b4fcf6acd3e27c;p=fa-stable.git Fixed pdf_debug mode. --- 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 "";