X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/46863f8e2310c275ec6d3b933d53717da711b05a..0c4f2c49ae759b4f4f9b5002d0a413f89b6498e6:/topdf.php
diff --git a/topdf.php b/topdf.php
index 4ede4cdd..f68be29c 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(PDF_REPORT_PAGE_BREAKS);
+ if ($use_breaks) $html .= '
';
+ }
}
- $first_pass = false;
+ $first_pass = false;
}
// Print a regular row.