X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=topdf.php;h=7d7a7f9d0cb82226ca9e7d818dd4e81577e5ad1e;hb=31d1263d1167f873afdc9e0fc588675359f46bb1;hp=4ede4cddd2adadfd7de36e2335b6ab68ebebb15c;hpb=46863f8e2310c275ec6d3b933d53717da711b05a;p=timetracker.git
diff --git a/topdf.php b/topdf.php
index 4ede4cdd..7d7a7f9d 100644
--- a/topdf.php
+++ b/topdf.php
@@ -215,8 +215,17 @@ if ($totals_only) {
if ($bean->getAttribute('chtimesheet')) $html .= '
| ';
$html .= '';
$html .= ' |
';
+ // TODO: page breaks on PDF reports is a rarely used feature.
+ // Currently without configuration capability.
+ // Consider adding an option to user profile instead.
+ if (isTrue('PDF_REPORT_PAGE_BREAKS')) {
+ import('ttUserConfig');
+ $uc = new ttUserConfig();
+ $use_breaks = $uc->getValue(SYSC_PDF_REPORT_PAGE_BREAKS);
+ if ($use_breaks) $html .= '
';
+ }
}
- $first_pass = false;
+ $first_pass = false;
}
// Print a regular row.